From 9478ab146de51ee6fa4c0b36cdf2ea3f602f53cd Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Wed, 16 Oct 2024 21:46:06 +0300 Subject: [PATCH 1/7] EPMRPP-93641 migrate to JDK 21 --- build.gradle | 72 +-- gradle.properties | 6 +- gradle/wrapper/gradle-wrapper.properties | 5 +- jitpack.yml | 2 +- jooq.gradle | 14 +- project-properties.gradle | 8 +- .../impl/AttachmentBinaryDataServiceImpl.java | 5 +- .../commons/JsonbAwarePostgresDialect.java | 33 -- .../reportportal/commons/JsonbUserType.java | 35 +- .../commons/querygen/FilterCondition.java | 13 +- .../config/DatabaseConfiguration.java | 11 +- .../dao/ApiKeyRepositoryCustomImpl.java | 2 +- .../dao/AttachmentRepositoryCustomImpl.java | 2 +- .../dao/DashboardRepositoryCustomImpl.java | 2 +- .../dao/IntegrationRepository.java | 6 +- .../dao/IntegrationRepositoryCustomImpl.java | 2 +- .../ta/reportportal/dao/LaunchRepository.java | 5 +- .../dao/LaunchRepositoryCustomImpl.java | 2 +- .../dao/LogRepositoryCustomImpl.java | 2 +- .../reportportal/dao/ProjectRepository.java | 2 +- .../dao/ProjectRepositoryCustomImpl.java | 2 +- .../dao/ReportPortalRepositoryImpl.java | 2 +- .../dao/TestItemRepositoryCustomImpl.java | 2 +- .../dao/UserFilterRepositoryCustomImpl.java | 2 +- .../dao/UserRepositoryCustomImpl.java | 2 +- .../dao/WidgetRepositoryCustomImpl.java | 2 +- .../dao/converters/JooqInstantConverter.java | 15 +- .../dao/converters/JpaInstantConverter.java | 4 +- .../dao/custom/ElasticSearchClient.java | 6 +- .../reportportal/dao/util/RecordMappers.java | 4 +- .../reportportal/dao/util/ResultFetchers.java | 2 +- .../dao/util/WidgetContentUtil.java | 6 +- .../ta/reportportal/entity/ItemAttribute.java | 18 +- .../ta/reportportal/entity/LTreeType.java | 48 +- .../epam/ta/reportportal/entity/Metadata.java | 9 +- .../ta/reportportal/entity/OwnedEntity.java | 2 +- .../reportportal/entity/ServerSettings.java | 12 +- .../entity/activity/Activity.java | 31 +- .../entity/activity/ActivityDetails.java | 29 +- .../entity/analytics/AnalyticsData.java | 18 +- .../entity/attachment/Attachment.java | 14 +- .../entity/attribute/Attribute.java | 12 +- .../ta/reportportal/entity/bts/Ticket.java | 16 +- .../reportportal/entity/cluster/Cluster.java | 12 +- .../entity/cluster/ClusterTestItem.java | 14 +- .../entity/dashboard/Dashboard.java | 44 +- .../entity/dashboard/DashboardWidget.java | 112 +--- .../entity/dashboard/DashboardWidgetId.java | 24 +- .../entity/enums/PostgreSQLEnumType.java | 41 -- .../converter/AnalyzerModeConverter.java | 4 +- .../enums/converter/LogLevelConverter.java | 4 +- .../enums/converter/ProjectRoleConverter.java | 4 +- .../enums/converter/ProjectTypeConverter.java | 4 +- .../enums/converter/UserTypeConverter.java | 4 +- .../entity/filter/FilterSort.java | 56 +- .../entity/filter/UserFilter.java | 29 +- .../entity/integration/Integration.java | 95 +--- .../entity/integration/IntegrationParams.java | 26 +- .../entity/integration/IntegrationType.java | 105 +--- .../integration/IntegrationTypeDetails.java | 4 +- .../reportportal/entity/item/Parameter.java | 4 +- .../ta/reportportal/entity/item/TestItem.java | 45 +- .../entity/item/TestItemResults.java | 34 +- .../entity/item/issue/IssueEntity.java | 26 +- .../entity/item/issue/IssueGroup.java | 20 +- .../entity/item/issue/IssueType.java | 93 +--- .../ta/reportportal/entity/launch/Launch.java | 44 +- .../epam/ta/reportportal/entity/log/Log.java | 26 +- .../entity/oauth/OAuthRegistration.java | 14 +- .../oauth/OAuthRegistrationRestriction.java | 16 +- .../entity/oauth/OAuthRegistrationScope.java | 16 +- .../entity/pattern/PatternTemplate.java | 19 +- .../pattern/PatternTemplateTestItem.java | 12 +- .../pattern/PatternTemplateTestItemKey.java | 6 +- .../entity/preference/UserPreference.java | 14 +- .../reportportal/entity/project/Project.java | 31 +- .../entity/project/ProjectAttribute.java | 14 +- .../entity/project/ProjectAttributeKey.java | 6 +- .../entity/project/ProjectIssueType.java | 12 +- .../entity/project/ProjectIssueTypeKey.java | 6 +- .../entity/project/ProjectUtils.java | 4 +- .../project/email/LaunchAttributeRule.java | 16 +- .../entity/project/email/SenderCase.java | 169 ++---- .../project/email/SenderCaseOptions.java | 22 +- .../entity/statistics/Statistics.java | 20 +- .../entity/statistics/StatisticsField.java | 12 +- .../ta/reportportal/entity/user/ApiKey.java | 14 +- .../reportportal/entity/user/ProjectUser.java | 26 +- .../entity/user/ProjectUserId.java | 4 +- .../entity/user/RestorePasswordBid.java | 10 +- .../ta/reportportal/entity/user/User.java | 29 +- .../entity/user/UserCreationBid.java | 31 +- .../ta/reportportal/entity/widget/Widget.java | 27 +- .../entity/widget/WidgetOptions.java | 26 +- .../AbstractLaunchStatisticsContent.java | 4 +- .../widget/content/CriteriaHistoryItem.java | 2 +- .../content/FlakyCasesTableContent.java | 2 +- .../content/LaunchesDurationContent.java | 4 +- .../MostTimeConsumingTestCasesContent.java | 2 +- .../content/PassingRateStatisticsResult.java | 2 +- .../ProductStatusStatisticsContent.java | 2 +- .../widget/content/UniqueBugContent.java | 2 +- .../ta/reportportal/jooq/DefaultCatalog.java | 36 +- .../epam/ta/reportportal/jooq/Indexes.java | 355 ++----------- .../epam/ta/reportportal/jooq/JPublic.java | 205 +++----- .../com/epam/ta/reportportal/jooq/Keys.java | 486 +++++------------- .../epam/ta/reportportal/jooq/Sequences.java | 188 +------ .../com/epam/ta/reportportal/jooq/Tables.java | 38 +- .../jooq/enums/JAccessTokenTypeEnum.java | 22 +- .../jooq/enums/JAuthTypeEnum.java | 22 +- .../jooq/enums/JFilterConditionEnum.java | 22 +- .../jooq/enums/JIntegrationAuthFlowEnum.java | 22 +- .../jooq/enums/JIntegrationGroupEnum.java | 22 +- .../jooq/enums/JIssueGroupEnum.java | 22 +- .../jooq/enums/JLaunchModeEnum.java | 22 +- .../jooq/enums/JLogicalOperatorEnum.java | 22 +- .../jooq/enums/JPasswordEncoderType.java | 22 +- .../jooq/enums/JProjectRoleEnum.java | 22 +- .../jooq/enums/JRetentionPolicyEnum.java | 22 +- .../jooq/enums/JSortDirectionEnum.java | 22 +- .../reportportal/jooq/enums/JStatusEnum.java | 22 +- .../jooq/enums/JTestItemTypeEnum.java | 22 +- .../reportportal/jooq/tables/JActivity.java | 226 ++++++-- .../jooq/tables/JAnalyticsData.java | 175 +++++-- .../ta/reportportal/jooq/tables/JApiKeys.java | 213 ++++++-- .../reportportal/jooq/tables/JAttachment.java | 214 ++++++-- .../jooq/tables/JAttachmentDeletion.java | 178 +++++-- .../reportportal/jooq/tables/JAttribute.java | 215 ++++++-- .../reportportal/jooq/tables/JClusters.java | 169 ++++-- .../jooq/tables/JClustersTestItem.java | 161 ++++-- .../jooq/tables/JContentField.java | 197 +++++-- .../reportportal/jooq/tables/JDashboard.java | 232 +++++++-- .../jooq/tables/JDashboardWidget.java | 235 +++++++-- .../ta/reportportal/jooq/tables/JFilter.java | 274 ++++++++-- .../jooq/tables/JFilterCondition.java | 212 ++++++-- .../reportportal/jooq/tables/JFilterSort.java | 208 ++++++-- .../jooq/tables/JIntegration.java | 230 +++++++-- .../jooq/tables/JIntegrationType.java | 217 ++++++-- .../ta/reportportal/jooq/tables/JIssue.java | 243 +++++++-- .../reportportal/jooq/tables/JIssueGroup.java | 206 ++++++-- .../jooq/tables/JIssueTicket.java | 220 ++++++-- .../reportportal/jooq/tables/JIssueType.java | 247 +++++++-- .../jooq/tables/JIssueTypeProject.java | 220 ++++++-- .../jooq/tables/JItemAttribute.java | 232 +++++++-- .../ta/reportportal/jooq/tables/JLaunch.java | 308 +++++++++-- .../jooq/tables/JLaunchAttributeRules.java | 214 ++++++-- .../jooq/tables/JLaunchNames.java | 197 +++++-- .../jooq/tables/JLaunchNumber.java | 212 ++++++-- .../ta/reportportal/jooq/tables/JLog.java | 255 +++++++-- .../jooq/tables/JOauthRegistration.java | 242 +++++++-- .../tables/JOauthRegistrationRestriction.java | 226 ++++++-- .../jooq/tables/JOauthRegistrationScope.java | 220 ++++++-- .../reportportal/jooq/tables/JOnboarding.java | 177 +++++-- .../jooq/tables/JOwnedEntity.java | 246 +++++++-- .../reportportal/jooq/tables/JParameter.java | 199 +++++-- .../jooq/tables/JPatternTemplate.java | 239 +++++++-- .../jooq/tables/JPatternTemplateTestItem.java | 222 ++++++-- .../jooq/tables/JPgpArmorHeaders.java | 93 ++-- .../ta/reportportal/jooq/tables/JProject.java | 384 ++++++++++++-- .../jooq/tables/JProjectAttribute.java | 224 ++++++-- .../jooq/tables/JProjectUser.java | 222 ++++++-- .../reportportal/jooq/tables/JRecipients.java | 197 +++++-- .../jooq/tables/JRestorePasswordBid.java | 174 +++++-- .../reportportal/jooq/tables/JSenderCase.java | 256 +++++++-- .../jooq/tables/JServerSettings.java | 170 ++++-- .../reportportal/jooq/tables/JShedlock.java | 173 +++++-- .../jooq/tables/JStaleMaterializedView.java | 171 ++++-- .../reportportal/jooq/tables/JStatistics.java | 245 +++++++-- .../jooq/tables/JStatisticsField.java | 225 ++++++-- .../reportportal/jooq/tables/JTestItem.java | 364 ++++++++++--- .../jooq/tables/JTestItemResults.java | 222 ++++++-- .../ta/reportportal/jooq/tables/JTicket.java | 220 ++++++-- .../jooq/tables/JUserCreationBid.java | 221 ++++++-- .../jooq/tables/JUserPreference.java | 238 +++++++-- .../ta/reportportal/jooq/tables/JUsers.java | 297 +++++++++-- .../ta/reportportal/jooq/tables/JWidget.java | 273 ++++++++-- .../jooq/tables/JWidgetFilter.java | 220 ++++++-- .../jooq/tables/records/JActivityRecord.java | 352 +------------ .../tables/records/JAnalyticsDataRecord.java | 136 +---- .../jooq/tables/records/JApiKeysRecord.java | 192 +------ .../records/JAttachmentDeletionRecord.java | 164 +----- .../tables/records/JAttachmentRecord.java | 280 +--------- .../jooq/tables/records/JAttributeRecord.java | 88 +--- .../jooq/tables/records/JClustersRecord.java | 158 +----- .../records/JClustersTestItemRecord.java | 86 +--- .../tables/records/JContentFieldRecord.java | 86 +--- .../jooq/tables/records/JDashboardRecord.java | 136 +---- .../records/JDashboardWidgetRecord.java | 280 +--------- .../records/JFilterConditionRecord.java | 182 +------ .../jooq/tables/records/JFilterRecord.java | 136 +---- .../tables/records/JFilterSortRecord.java | 136 +---- .../tables/records/JIntegrationRecord.java | 230 +-------- .../records/JIntegrationTypeRecord.java | 206 +------- .../tables/records/JIssueGroupRecord.java | 88 +--- .../jooq/tables/records/JIssueRecord.java | 158 +----- .../tables/records/JIssueTicketRecord.java | 87 +--- .../records/JIssueTypeProjectRecord.java | 87 +--- .../jooq/tables/records/JIssueTypeRecord.java | 182 +------ .../tables/records/JItemAttributeRecord.java | 182 +------ .../records/JLaunchAttributeRulesRecord.java | 136 +---- .../tables/records/JLaunchNamesRecord.java | 86 +--- .../tables/records/JLaunchNumberRecord.java | 136 +---- .../jooq/tables/records/JLaunchRecord.java | 422 +-------------- .../jooq/tables/records/JLogRecord.java | 304 +---------- .../records/JOauthRegistrationRecord.java | 334 +----------- .../JOauthRegistrationRestrictionRecord.java | 142 +---- .../JOauthRegistrationScopeRecord.java | 118 +---- .../tables/records/JOnboardingRecord.java | 158 +----- .../tables/records/JOwnedEntityRecord.java | 112 +--- .../jooq/tables/records/JParameterRecord.java | 112 +--- .../records/JPatternTemplateRecord.java | 182 +------ .../JPatternTemplateTestItemRecord.java | 87 +--- .../records/JPgpArmorHeadersRecord.java | 86 +--- .../records/JProjectAttributeRecord.java | 112 +--- .../jooq/tables/records/JProjectRecord.java | 206 +------- .../tables/records/JProjectUserRecord.java | 112 +--- .../tables/records/JRecipientsRecord.java | 86 +--- .../records/JRestorePasswordBidRecord.java | 112 +--- .../tables/records/JSenderCaseRecord.java | 230 +-------- .../tables/records/JServerSettingsRecord.java | 112 +--- .../jooq/tables/records/JShedlockRecord.java | 136 +---- .../records/JStaleMaterializedViewRecord.java | 112 +--- .../records/JStatisticsFieldRecord.java | 88 +--- .../tables/records/JStatisticsRecord.java | 158 +----- .../jooq/tables/records/JTestItemRecord.java | 470 +---------------- .../records/JTestItemResultsRecord.java | 136 +---- .../jooq/tables/records/JTicketRecord.java | 230 +-------- .../records/JUserCreationBidRecord.java | 248 ++------- .../tables/records/JUserPreferenceRecord.java | 136 +---- .../jooq/tables/records/JUsersRecord.java | 376 +------------- .../tables/records/JWidgetFilterRecord.java | 87 +--- .../jooq/tables/records/JWidgetRecord.java | 182 +------ .../com/epam/ta/reportportal/BaseTest.java | 13 +- .../impl/CommonDataStoreServiceTest.java | 27 +- .../impl/UserCommonDataStoreServiceTest.java | 6 +- .../config/TestConfiguration.java | 39 +- .../dao/PatternTemplateRepositoryTest.java | 4 +- .../converter/AttributeConverterTest.java | 2 +- .../entity/project/ProjectUtilsTest.java | 10 +- src/test/resources/application.yml | 37 ++ .../resources/test-application.properties | 36 -- 241 files changed, 11551 insertions(+), 13842 deletions(-) delete mode 100644 src/main/java/com/epam/ta/reportportal/commons/JsonbAwarePostgresDialect.java delete mode 100644 src/main/java/com/epam/ta/reportportal/entity/enums/PostgreSQLEnumType.java create mode 100644 src/test/resources/application.yml delete mode 100644 src/test/resources/test-application.properties diff --git a/build.gradle b/build.gradle index 49c949b87..6d5ac4fad 100644 --- a/build.gradle +++ b/build.gradle @@ -1,21 +1,22 @@ import org.owasp.dependencycheck.reporting.ReportGenerator plugins { - id 'io.spring.dependency-management' version '1.0.9.RELEASE' + id 'io.spring.dependency-management' version '1.1.6' id 'java' id 'java-library' - id 'nu.studer.jooq' version '3.0.3' - id 'org.owasp.dependencycheck' version '5.3.1' + id 'org.owasp.dependencycheck' version '10.0.4' + id "org.jooq.jooq-codegen-gradle" version "${jooqVersion}" } apply from: 'project-properties.gradle' apply from: "$scriptsUrl/release-commons.gradle" apply from: "$scriptsUrl/signing.gradle" apply from: "$scriptsUrl/copy-database-scripts.gradle" -apply from: "$scriptsUrl/build-quality.gradle" -apply from: "$scriptsUrl/jacoco.gradle" +//apply from: "$scriptsUrl/build-quality.gradle" +//apply from: "$scriptsUrl/jacoco.gradle" // fix scripts firstly apply from: 'jooq.gradle' + repositories { mavenCentral { url "https://repo1.maven.org/maven2" } @@ -24,6 +25,8 @@ repositories { } } +ext['spring-boot.version'] = "${springBootVersion}" + dependencyManagement { imports { mavenBom(releaseMode ? 'com.epam.reportportal:commons-bom:5.11.7' : 'com.epam.reportportal:commons-bom:5.11.7') @@ -33,50 +36,50 @@ dependencyManagement { dependencies { if (releaseMode) { - compile 'com.epam.reportportal:commons' + implementation 'com.epam.reportportal:commons' } else { implementation 'com.github.reportportal:commons:d4be022' } + // jooq dependencies + implementation "org.jooq:jooq:${jooqVersion}" + implementation "org.postgresql:postgresql:${jdbcDriverVersion}" + jooqCodegen "org.postgresql:postgresql:${jdbcDriverVersion}" + + implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2' + implementation 'com.sun.xml.bind:jaxb-impl:4.0.5' + implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359' + implementation 'javax.servlet:javax.servlet-api:4.0.1' // get rid of unnecessary dep. and resolve conflicts with 'commons' + implementation 'org.springframework.security:spring-security-core' implementation 'org.springframework:spring-webmvc' implementation 'org.apache.tika:tika-core' - //https://nvd.nist.gov/vuln/detail/CVE-2020-10683 (dom4j 2.1.3 version dependency) AND https://nvd.nist.gov/vuln/detail/CVE-2019-14900 - compile('org.springframework.boot:spring-boot-starter-data-jpa') { + implementation('org.springframework.boot:spring-boot-starter-data-jpa') { exclude group: 'org.hibernate', module: 'hibernate-core' } - implementation 'org.springframework:spring-jdbc:5.3.33' - implementation 'org.hibernate:hibernate-core:5.6.15.Final' - // - //https://nvd.nist.gov/vuln/detail/CVE-2020-13692 - compile 'org.postgresql:postgresql:42.7.3' - compile 'org.jooq:jooq' - jooqRuntime 'org.postgresql:postgresql:42.7.3' + implementation 'io.minio:minio:8.5.12' - compile 'io.minio:minio:6.0.13' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' + implementation 'org.hibernate.validator:hibernate-validator' - implementation group: 'org.json', name: 'json', version: '20231013' - compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' - compile 'org.hibernate.validator:hibernate-validator' - - compile 'org.apache.commons:commons-collections4:4.4' - compile 'commons-fileupload:commons-fileupload:1.4' - compile('commons-validator:commons-validator:1.6') { + implementation 'org.apache.commons:commons-collections4:4.4' + implementation 'commons-fileupload:commons-fileupload:1.5' // get rid of unnecessary dep. use spring multipart instead + implementation ('commons-validator:commons-validator:1.9.0') { exclude group: 'commons-beanutils', module: 'commons-beanutils' } - compile 'org.jasypt:jasypt:1.9.3' + implementation 'org.jasypt:jasypt:1.9.3' - compile 'io.zonky.test:embedded-postgres:2.0.6' - //Fix CVE-2024-25710, CVE-2024-26308 - compile 'org.apache.commons:commons-compress:1.26.0' - compile 'org.flywaydb:flyway-core:6.3.1' + implementation 'io.zonky.test:embedded-postgres:2.0.7' + implementation 'org.apache.commons:commons-compress:1.26.1' + implementation 'org.flywaydb:flyway-core:10.15.2' - compile 'org.apache.jclouds.api:s3:2.5.0' - compile 'org.apache.jclouds.provider:aws-s3:2.5.0' - implementation 'org.apache.jclouds.api:filesystem:2.5.0' + implementation "org.apache.jclouds.api:s3:${jcloudsVersion}" + implementation "org.apache.jclouds.provider:aws-s3:${jcloudsVersion}" + implementation "org.apache.jclouds.api:filesystem:${jcloudsVersion}" + implementation 'com.google.guava:guava:33.2.1-jre' // add lombok support compileOnly "org.projectlombok:lombok:${lombokVersion}" @@ -87,7 +90,9 @@ dependencies { implementation 'com.github.ben-manes.caffeine:caffeine' testImplementation 'org.springframework.boot:spring-boot-starter-test' - testImplementation 'org.flywaydb.flyway-test-extensions:flyway-spring-test:6.1.0' + implementation 'org.flywaydb:flyway-database-postgresql:10.20.0' + + testImplementation 'org.flywaydb.flyway-test-extensions:flyway-spring6-test:10.0.0' } @@ -110,6 +115,7 @@ tasks.withType(JavaCompile) { options.debugOptions.debugLevel = "source,lines,vars" } + checkCommitNeeded.dependsOn removeScripts test.dependsOn copyTestDatabaseScripts -build.dependsOn jacocoTestReport +//build.dependsOn jacocoTestReport diff --git a/gradle.properties b/gradle.properties index cae3fcc45..66defee70 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,6 @@ version=5.11.7 -lombokVersion=1.18.30 \ No newline at end of file +springBootVersion=3.3.4 +lombokVersion=1.18.34 +jooqVersion=3.19.13 +jdbcDriverVersion=42.7.3 +jcloudsVersion=2.6.0 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c8ce83d67..18330fcba 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ -#Fri Mar 13 21:13:13 MSK 2020 -distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/jitpack.yml b/jitpack.yml index 46c852919..727c9abd3 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,2 @@ jdk: - - openjdk11 \ No newline at end of file + - openjdk21 diff --git a/jooq.gradle b/jooq.gradle index 25c643f1d..e39fd06d4 100644 --- a/jooq.gradle +++ b/jooq.gradle @@ -1,7 +1,5 @@ jooq { - version = '3.12.4' - edition = 'OSS' - sample(sourceSets.main) { + configuration { jdbc { driver = 'org.postgresql.Driver' url = 'jdbc:postgresql://localhost:5432/reportportal' @@ -11,22 +9,18 @@ jooq { generator { strategy { name = 'org.jooq.codegen.example.JPrefixGeneratorStrategy' - // ... } database { name = 'org.jooq.meta.postgres.PostgresDatabase' inputSchema = (hasDBSchema ? getProperty('DB_SCHEMA_POSTGRES') : 'public') - // ... + excludes = 'batch_.*|schema_migrations' forcedTypes { forcedType { - // Specify the Java type of your custom type. This corresponds to the Converter's type. userType = "java.time.Instant" - // Associate that custom type with your converter. converter = "com.epam.ta.reportportal.dao.converters.JooqInstantConverter" - // A Java regex matching fully-qualified columns, attributes, parameters. Use the pipe to separate several expressions. types = "TIMESTAMP" } @@ -46,7 +40,3 @@ jooq { } } } - -generateSampleJooqSchemaSource { - enabled = false -} diff --git a/project-properties.gradle b/project-properties.gradle index 893ceed4c..5ca3623b7 100755 --- a/project-properties.gradle +++ b/project-properties.gradle @@ -1,5 +1,5 @@ -sourceCompatibility = JavaVersion.VERSION_11 -targetCompatibility = JavaVersion.VERSION_11 +sourceCompatibility = JavaVersion.VERSION_21 +targetCompatibility = JavaVersion.VERSION_21 def commonScriptsUrl = 'https://raw.githubusercontent.com/reportportal/gradle-scripts/' def migrationsScriptsUrl = 'https://raw.githubusercontent.com/reportportal/migrations/' @@ -111,7 +111,3 @@ project.ext { 'class' : 87 ] } - -wrapper { - gradleVersion = '6.0' -} diff --git a/src/main/java/com/epam/ta/reportportal/binary/impl/AttachmentBinaryDataServiceImpl.java b/src/main/java/com/epam/ta/reportportal/binary/impl/AttachmentBinaryDataServiceImpl.java index ecf2bade4..927d1f540 100644 --- a/src/main/java/com/epam/ta/reportportal/binary/impl/AttachmentBinaryDataServiceImpl.java +++ b/src/main/java/com/epam/ta/reportportal/binary/impl/AttachmentBinaryDataServiceImpl.java @@ -38,7 +38,6 @@ import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; -import org.springframework.web.multipart.commons.CommonsMultipartFile; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -128,9 +127,9 @@ public Optional saveAttachment(AttachmentMetaInfo metaInfo, } catch (IOException e) { LOGGER.error("Unable to save binary data", e); } finally { - if (file instanceof CommonsMultipartFile) { +/* if (file instanceof CommonsMultipartFile) { ((CommonsMultipartFile) file).getFileItem().delete(); - } + }*/ } return result; } diff --git a/src/main/java/com/epam/ta/reportportal/commons/JsonbAwarePostgresDialect.java b/src/main/java/com/epam/ta/reportportal/commons/JsonbAwarePostgresDialect.java deleted file mode 100644 index 31775a66c..000000000 --- a/src/main/java/com/epam/ta/reportportal/commons/JsonbAwarePostgresDialect.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2019 EPAM Systems - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.epam.ta.reportportal.commons; - -import java.sql.Types; -import org.hibernate.dialect.PostgreSQL95Dialect; - -/** - * Postgres Dialect aware of JSON/JSONB types - * - * @author Andrei Varabyeu - */ -public class JsonbAwarePostgresDialect extends PostgreSQL95Dialect { - - public JsonbAwarePostgresDialect() { - super(); - this.registerColumnType(Types.JAVA_OBJECT, "json"); - } -} diff --git a/src/main/java/com/epam/ta/reportportal/commons/JsonbUserType.java b/src/main/java/com/epam/ta/reportportal/commons/JsonbUserType.java index 737309f82..1670f46c5 100644 --- a/src/main/java/com/epam/ta/reportportal/commons/JsonbUserType.java +++ b/src/main/java/com/epam/ta/reportportal/commons/JsonbUserType.java @@ -41,36 +41,33 @@ /** * @author Pavel Bortnik */ -public abstract class JsonbUserType implements UserType { +public abstract class JsonbUserType implements UserType { private final ObjectMapper mapper; - public JsonbUserType() { + protected JsonbUserType() { mapper = new ObjectMapper(); mapper.registerModule(new JavaTimeModule()); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); } @Override - public int[] sqlTypes() { - return new int[]{Types.JAVA_OBJECT}; + public int getSqlType() { + return Types.JAVA_OBJECT; } @Override - abstract public Class returnedClass(); - - @Override - public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, - Object owner) - throws HibernateException, SQLException { - if (rs.getObject(names[0]) == null) { + public T nullSafeGet(ResultSet rs, int position, SharedSessionContractImplementor session, + Object owner) throws SQLException { + if (rs.getObject(position) == null) { return null; } - PGobject pgObject = (PGobject) rs.getObject(names[0]); + PGobject pgObject = (PGobject) rs.getObject(position); try { return mapper.readValue(pgObject.getValue(), this.returnedClass()); } catch (Exception e) { - throw new ReportPortalException("Failed to convert String to Invoice: " + e.getMessage(), e); + throw new ReportPortalException( + String.format("Failed to convert String to '%s' ", this.returnedClass().getName()), e); } } @@ -95,7 +92,7 @@ public void nullSafeSet(PreparedStatement st, Object value, int index, } @Override - public Object deepCopy(Object value) throws HibernateException { + public T deepCopy(Object value) throws HibernateException { try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream( bos)) { // use serialization to create a deep copy @@ -104,7 +101,7 @@ public Object deepCopy(Object value) throws HibernateException { oos.flush(); ByteArrayInputStream bais = new ByteArrayInputStream(bos.toByteArray()); - return new ObjectInputStream(bais).readObject(); + return (T) new ObjectInputStream(bais).readObject(); } catch (ClassNotFoundException | IOException ex) { throw new HibernateException(ex); } @@ -113,8 +110,8 @@ public Object deepCopy(Object value) throws HibernateException { @Override public Serializable disassemble(Object value) throws HibernateException { Object copy = deepCopy(value); - if (copy instanceof Serializable) { - return (Serializable) copy; + if (copy instanceof Serializable serializable) { + return serializable; } throw new SerializationException( String.format("Cannot serialize '%s', %s is not Serializable.", value, value.getClass()), @@ -122,12 +119,12 @@ public Serializable disassemble(Object value) throws HibernateException { } @Override - public Object assemble(Serializable cached, Object owner) throws HibernateException { + public T assemble(Serializable cached, Object owner) throws HibernateException { return deepCopy(cached); } @Override - public Object replace(Object original, Object target, Object owner) throws HibernateException { + public T replace(Object original, Object target, Object owner) throws HibernateException { return deepCopy(original); } diff --git a/src/main/java/com/epam/ta/reportportal/commons/querygen/FilterCondition.java b/src/main/java/com/epam/ta/reportportal/commons/querygen/FilterCondition.java index b7aaf6807..1ef701dc2 100644 --- a/src/main/java/com/epam/ta/reportportal/commons/querygen/FilterCondition.java +++ b/src/main/java/com/epam/ta/reportportal/commons/querygen/FilterCondition.java @@ -19,13 +19,14 @@ import com.epam.reportportal.rules.exception.ErrorType; import com.epam.reportportal.rules.commons.validation.BusinessRule; import com.epam.reportportal.rules.commons.validation.Suppliers; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.google.common.collect.Lists; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; + +import org.hibernate.dialect.PostgreSQLEnumJdbcType; import org.jooq.Operator; -import javax.persistence.*; +import jakarta.persistence.*; import java.io.Serializable; import java.util.*; import java.util.stream.Collectors; @@ -37,7 +38,7 @@ */ @Entity @Table(name = "filter_condition", schema = "public") -@TypeDef(name = "pgsql_enum", typeClass = PostgreSQLEnumType.class) + public class FilterCondition implements ConvertibleCondition, Serializable { private static final long serialVersionUID = 1L; @@ -51,7 +52,7 @@ public class FilterCondition implements ConvertibleCondition, Serializable { * Filter Condition */ @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "condition") private Condition condition; @@ -289,4 +290,4 @@ public FilterCondition build() { return new FilterCondition(operator, condition, negative, value, searchCriteria); } } -} \ No newline at end of file +} diff --git a/src/main/java/com/epam/ta/reportportal/config/DatabaseConfiguration.java b/src/main/java/com/epam/ta/reportportal/config/DatabaseConfiguration.java index 9672210c0..2de1ec88a 100644 --- a/src/main/java/com/epam/ta/reportportal/config/DatabaseConfiguration.java +++ b/src/main/java/com/epam/ta/reportportal/config/DatabaseConfiguration.java @@ -19,9 +19,8 @@ import com.epam.ta.reportportal.dao.ReportPortalRepositoryImpl; import java.io.IOException; import java.io.Serializable; -import java.util.Properties; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import javax.sql.DataSource; import org.flywaydb.core.Flyway; import org.jooq.SQLDialect; @@ -74,7 +73,6 @@ public Flyway flyway() throws IOException { @Bean public EntityManagerFactory entityManagerFactory() { - HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter(); vendorAdapter.setGenerateDdl(false); @@ -84,11 +82,6 @@ public EntityManagerFactory entityManagerFactory() { "com.epam.ta.reportportal.entity"); factory.setDataSource(dataSource); - Properties jpaProperties = new Properties(); - jpaProperties.setProperty("hibernate.dialect", - "com.epam.ta.reportportal.commons.JsonbAwarePostgresDialect"); - factory.setJpaProperties(jpaProperties); - factory.afterPropertiesSet(); return factory.getObject(); diff --git a/src/main/java/com/epam/ta/reportportal/dao/ApiKeyRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/ApiKeyRepositoryCustomImpl.java index a633158a8..cadacba6c 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/ApiKeyRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/ApiKeyRepositoryCustomImpl.java @@ -2,7 +2,7 @@ import com.epam.ta.reportportal.entity.user.ApiKey; import java.time.LocalDate; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CachePut; import org.springframework.transaction.annotation.Transactional; diff --git a/src/main/java/com/epam/ta/reportportal/dao/AttachmentRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/AttachmentRepositoryCustomImpl.java index 5d55cc147..3ee893ceb 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/AttachmentRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/AttachmentRepositoryCustomImpl.java @@ -31,7 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; /** diff --git a/src/main/java/com/epam/ta/reportportal/dao/DashboardRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/DashboardRepositoryCustomImpl.java index 71070040e..0cdda4e59 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/DashboardRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/DashboardRepositoryCustomImpl.java @@ -26,7 +26,7 @@ import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; import java.util.Collection; diff --git a/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepository.java b/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepository.java index 585623165..02967c328 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepository.java +++ b/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepository.java @@ -125,6 +125,10 @@ List findAllProjectByGroup(@Param("project") Project project, List findAllGlobalByGroup( @Param("integrationGroup") IntegrationGroupEnum integrationGroup); + @Query(value = "SELECT i FROM Integration i JOIN i.type t WHERE i.project IS NULL AND t.integrationGroup = :integrationGroup order by i.creationDate desc") + List findAllGlobalByGroup2( + @Param("integrationGroup") String integrationGroup); + /** * Retrieve all {@link Integration} with {@link Integration#project} == null * @@ -184,6 +188,6 @@ void updateEnabledStateById(@Param("enabled") boolean enabled, void updateEnabledStateByIntegrationTypeId(@Param("enabled") boolean enabled, @Param("integrationTypeId") Long integrationTypeId); - @Query(value = "SELECT * FROM integration i LEFT OUTER JOIN integration_type it ON i.type = it.id WHERE it.name IN (:types) order by i.creation_date desc", nativeQuery = true) + @Query(value = "SELECT i.* FROM integration i LEFT OUTER JOIN integration_type it ON i.type = it.id WHERE it.name IN (:types) order by i.creation_date desc", nativeQuery = true) List findAllByTypeIn(@Param("types") String... types); } diff --git a/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepositoryCustomImpl.java index 8371be7f0..7430fba93 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/IntegrationRepositoryCustomImpl.java @@ -32,7 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; /** diff --git a/src/main/java/com/epam/ta/reportportal/dao/LaunchRepository.java b/src/main/java/com/epam/ta/reportportal/dao/LaunchRepository.java index e9b7b9ead..a42fe8b9c 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/LaunchRepository.java +++ b/src/main/java/com/epam/ta/reportportal/dao/LaunchRepository.java @@ -24,13 +24,14 @@ import com.epam.ta.reportportal.entity.item.TestItemResults; import com.epam.ta.reportportal.entity.launch.Launch; import com.epam.ta.reportportal.entity.project.Project; +import jakarta.persistence.NamedQuery; import java.time.Instant; import java.util.Collection; import java.util.List; import java.util.Optional; import java.util.stream.Stream; -import javax.persistence.LockModeType; -import javax.persistence.QueryHint; +import jakarta.persistence.LockModeType; +import jakarta.persistence.QueryHint; import org.springframework.data.jpa.repository.Lock; import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.QueryHints; diff --git a/src/main/java/com/epam/ta/reportportal/dao/LaunchRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/LaunchRepositoryCustomImpl.java index 7bd1be7c6..41586edc6 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/LaunchRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/LaunchRepositoryCustomImpl.java @@ -73,7 +73,7 @@ import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; /** diff --git a/src/main/java/com/epam/ta/reportportal/dao/LogRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/LogRepositoryCustomImpl.java index f9e670689..da5ea28f8 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/LogRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/LogRepositoryCustomImpl.java @@ -92,7 +92,7 @@ import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; /** diff --git a/src/main/java/com/epam/ta/reportportal/dao/ProjectRepository.java b/src/main/java/com/epam/ta/reportportal/dao/ProjectRepository.java index 1600fe21f..240383a0e 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/ProjectRepository.java +++ b/src/main/java/com/epam/ta/reportportal/dao/ProjectRepository.java @@ -32,7 +32,7 @@ public interface ProjectRepository extends ReportPortalRepository @Query(value = "SELECT p.* FROM project p JOIN project_user pu on p.id = pu.project_id JOIN users u on pu.user_id = u.id WHERE u.login = :login", nativeQuery = true) List findUserProjects(@Param("login") String login); - @Query(value = "SELECT * FROM project p JOIN project_user pu on p.id = pu.project_id JOIN users u on pu.user_id = u.id WHERE u.login = :login AND p.project_type = :projectType", nativeQuery = true) + @Query(value = "SELECT p.* FROM project p JOIN project_user pu on p.id = pu.project_id JOIN users u on pu.user_id = u.id WHERE u.login = :login AND p.project_type = :projectType", nativeQuery = true) List findUserProjects(@Param("login") String login, @Param("projectType") String projectType); diff --git a/src/main/java/com/epam/ta/reportportal/dao/ProjectRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/ProjectRepositoryCustomImpl.java index 9dae74156..160faaa0b 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/ProjectRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/ProjectRepositoryCustomImpl.java @@ -42,7 +42,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; @Repository diff --git a/src/main/java/com/epam/ta/reportportal/dao/ReportPortalRepositoryImpl.java b/src/main/java/com/epam/ta/reportportal/dao/ReportPortalRepositoryImpl.java index 343ca2cc0..322ce5579 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/ReportPortalRepositoryImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/ReportPortalRepositoryImpl.java @@ -18,7 +18,7 @@ import com.epam.ta.reportportal.commons.querygen.Filter; import java.io.Serializable; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.jooq.DSLContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.jpa.repository.support.JpaEntityInformation; diff --git a/src/main/java/com/epam/ta/reportportal/dao/TestItemRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/TestItemRepositoryCustomImpl.java index 18a881b61..2f1cfa847 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/TestItemRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/TestItemRepositoryCustomImpl.java @@ -126,7 +126,7 @@ import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.data.util.Pair; import org.springframework.stereotype.Repository; diff --git a/src/main/java/com/epam/ta/reportportal/dao/UserFilterRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/UserFilterRepositoryCustomImpl.java index 8fe138b3f..be3589c97 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/UserFilterRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/UserFilterRepositoryCustomImpl.java @@ -32,7 +32,7 @@ import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; /** diff --git a/src/main/java/com/epam/ta/reportportal/dao/UserRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/UserRepositoryCustomImpl.java index ef52f2753..7a1972ef4 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/UserRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/UserRepositoryCustomImpl.java @@ -40,7 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; /** diff --git a/src/main/java/com/epam/ta/reportportal/dao/WidgetRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/WidgetRepositoryCustomImpl.java index 230386226..43d2eaabf 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/WidgetRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/WidgetRepositoryCustomImpl.java @@ -26,7 +26,7 @@ import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; -import org.springframework.data.repository.support.PageableExecutionUtils; +import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Repository; import java.util.Collection; diff --git a/src/main/java/com/epam/ta/reportportal/dao/converters/JooqInstantConverter.java b/src/main/java/com/epam/ta/reportportal/dao/converters/JooqInstantConverter.java index dba70b859..e98b990bd 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/converters/JooqInstantConverter.java +++ b/src/main/java/com/epam/ta/reportportal/dao/converters/JooqInstantConverter.java @@ -16,28 +16,25 @@ package com.epam.ta.reportportal.dao.converters; -import java.sql.Timestamp; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; import org.jooq.impl.AbstractConverter; -public class JooqInstantConverter extends AbstractConverter { +public class JooqInstantConverter extends AbstractConverter { public JooqInstantConverter() { - super(Timestamp.class, Instant.class); + super(LocalDateTime.class, Instant.class); } - @Override - public Instant from(Timestamp timestamp) { - return timestamp == null ? null : timestamp.toInstant(); + public Instant from(LocalDateTime localDateTime) { + return localDateTime == null ? null : localDateTime.atOffset(ZoneOffset.UTC).toInstant(); } @Override - public Timestamp to(Instant instant) { - return instant == null ? null - : Timestamp.valueOf(LocalDateTime.ofInstant(instant, ZoneOffset.UTC)); + public LocalDateTime to(Instant instant) { + return instant == null ? null : LocalDateTime.ofInstant(instant, ZoneOffset.UTC); } } diff --git a/src/main/java/com/epam/ta/reportportal/dao/converters/JpaInstantConverter.java b/src/main/java/com/epam/ta/reportportal/dao/converters/JpaInstantConverter.java index e4d29d90e..3d23dcfe8 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/converters/JpaInstantConverter.java +++ b/src/main/java/com/epam/ta/reportportal/dao/converters/JpaInstantConverter.java @@ -4,8 +4,8 @@ import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; import org.springframework.lang.Nullable; @Converter(autoApply = true) diff --git a/src/main/java/com/epam/ta/reportportal/dao/custom/ElasticSearchClient.java b/src/main/java/com/epam/ta/reportportal/dao/custom/ElasticSearchClient.java index 9c4a5429c..3e0cc8ec8 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/custom/ElasticSearchClient.java +++ b/src/main/java/com/epam/ta/reportportal/dao/custom/ElasticSearchClient.java @@ -13,7 +13,7 @@ import java.util.Map; import java.util.Set; import org.apache.commons.collections.MapUtils; -import org.json.JSONObject; +import org.jooq.tools.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; @@ -26,10 +26,6 @@ import org.springframework.util.CollectionUtils; import org.springframework.web.client.RestTemplate; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import java.util.*; - /** * Simple client to work with Elasticsearch. * diff --git a/src/main/java/com/epam/ta/reportportal/dao/util/RecordMappers.java b/src/main/java/com/epam/ta/reportportal/dao/util/RecordMappers.java index 8a96b1988..21448a702 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/util/RecordMappers.java +++ b/src/main/java/com/epam/ta/reportportal/dao/util/RecordMappers.java @@ -162,7 +162,9 @@ public class RecordMappers { */ public static final RecordMapper ISSUE_RECORD_MAPPER = r -> { IssueEntity issueEntity = r.into(IssueEntity.class); - issueEntity.setIssueType(ISSUE_TYPE_RECORD_MAPPER.map(r)); + if (r.field(ISSUE.ISSUE_ID) != null){ + issueEntity.setIssueType(ISSUE_TYPE_RECORD_MAPPER.map(r)); + } return issueEntity; }; diff --git a/src/main/java/com/epam/ta/reportportal/dao/util/ResultFetchers.java b/src/main/java/com/epam/ta/reportportal/dao/util/ResultFetchers.java index 6b538c6e7..8e14a67f6 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/util/ResultFetchers.java +++ b/src/main/java/com/epam/ta/reportportal/dao/util/ResultFetchers.java @@ -324,7 +324,7 @@ record -> users.computeIfAbsent(record.get(USERS.ID), key -> record.map(USER_MAP project.setId(r.get(OWNED_ENTITY.PROJECT_ID, Long.class)); dashboard.setProject(project); } - DASHBOARD_WIDGET_MAPPER.apply(r).ifPresent(it -> dashboard.getDashboardWidgets().add(it)); + DASHBOARD_WIDGET_MAPPER.apply(r).ifPresent(dashboard::addWidget); dashboardMap.put(dashboardId, dashboard); }); return Lists.newArrayList(dashboardMap.values()); diff --git a/src/main/java/com/epam/ta/reportportal/dao/util/WidgetContentUtil.java b/src/main/java/com/epam/ta/reportportal/dao/util/WidgetContentUtil.java index 23131c088..6aebc9e0f 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/util/WidgetContentUtil.java +++ b/src/main/java/com/epam/ta/reportportal/dao/util/WidgetContentUtil.java @@ -206,7 +206,7 @@ public static void consumeIfNotNull(K key, V value, BiConsumer cons content.setName(record.get(DSL.field(LAUNCH.NAME.getQualifiedName().toString()), String.class)); content.setNumber(record.get(DSL.field(LAUNCH.NUMBER.getQualifiedName().toString()), Integer.class)); - startTimeField.ifPresent(f -> content.setStartTime(record.get(f, Instant.class))); + startTimeField.ifPresent(f -> content.setStartTime(record.get(f, Timestamp.class).toInstant())); } statisticsField.flatMap(sf -> ofNullable(record.get(sf, String.class))) @@ -315,7 +315,7 @@ private static void proceedProductStatusAttributes(Record record, String columnN } ProductStatusStatisticsContent content = PRODUCT_STATUS_WITHOUT_ATTRIBUTES_MAPPER.apply(productStatusMapping, record); - startTimeField.ifPresent(f -> content.setStartTime(record.get(f, Instant.class))); + startTimeField.ifPresent(f -> content.setStartTime(record.get(f, Timestamp.class).toInstant())); statusField.ifPresent(f -> content.setStatus(record.get(f, String.class))); if (attributeField.isPresent()) { String attributeKey = record.get(fieldName(ATTR_TABLE, ATTRIBUTE_KEY), String.class); @@ -345,7 +345,7 @@ private static void proceedProductStatusAttributes(Record record, String columnN result.forEach(record -> { ProductStatusStatisticsContent content = PRODUCT_STATUS_WITHOUT_ATTRIBUTES_MAPPER.apply(productStatusMapping, record); - startTimeField.ifPresent(f -> content.setStartTime(record.get(f, Instant.class))); + startTimeField.ifPresent(f -> content.setStartTime(record.get(f, Timestamp.class).toInstant())); statusField.ifPresent(f -> content.setStatus(record.get(f, String.class))); if (attributeField.isPresent()) { String attributeKey = record.get(fieldName(ATTR_TABLE, ATTRIBUTE_KEY), String.class); diff --git a/src/main/java/com/epam/ta/reportportal/entity/ItemAttribute.java b/src/main/java/com/epam/ta/reportportal/entity/ItemAttribute.java index 50f5e5e53..33fa6196e 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/ItemAttribute.java +++ b/src/main/java/com/epam/ta/reportportal/entity/ItemAttribute.java @@ -20,15 +20,15 @@ import com.epam.ta.reportportal.entity.launch.Launch; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Ihar Kahadouski diff --git a/src/main/java/com/epam/ta/reportportal/entity/LTreeType.java b/src/main/java/com/epam/ta/reportportal/entity/LTreeType.java index f041549ce..3d467d636 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/LTreeType.java +++ b/src/main/java/com/epam/ta/reportportal/entity/LTreeType.java @@ -21,50 +21,47 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; -import org.hibernate.HibernateException; import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.usertype.UserType; -public class LTreeType implements UserType { +public class LTreeType implements UserType { @Override - public int[] sqlTypes() { - return new int[]{Types.OTHER}; + public int getSqlType() { + return Types.OTHER; } @SuppressWarnings("rawtypes") @Override - public Class returnedClass() { + public Class returnedClass() { return String.class; } @Override - public boolean equals(Object x, Object y) throws HibernateException { - return x == y; + public boolean equals(String s, String j1) { + return s.equals(j1); } @Override - public int hashCode(Object x) throws HibernateException { - return x.hashCode(); + public int hashCode(String s) { + return s.hashCode(); } @Override - public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, - Object owner) - throws HibernateException, SQLException { - return rs.getString(names[0]); + public String nullSafeGet(ResultSet rs, int position, SharedSessionContractImplementor session, + Object owner) throws SQLException { + return rs.getString(position); } @Override - public void nullSafeSet(PreparedStatement st, Object value, int index, - SharedSessionContractImplementor session) - throws HibernateException, SQLException { - st.setObject(index, value, Types.OTHER); + public String deepCopy(String s) { + return s; } @Override - public Object deepCopy(Object value) throws HibernateException { - return value; + public void nullSafeSet(PreparedStatement st, String value, int index, + SharedSessionContractImplementor session) throws SQLException { + st.setObject(index, value, Types.OTHER); } @Override @@ -73,18 +70,13 @@ public boolean isMutable() { } @Override - public Serializable disassemble(Object value) throws HibernateException { - return (Serializable) value; - } - - @Override - public Object assemble(Serializable cached, Object owner) throws HibernateException { - return cached; + public Serializable disassemble(String s) { + return s; } @Override - public Object replace(Object original, Object target, Object owner) throws HibernateException { - return deepCopy(original); + public String assemble(Serializable cached, Object owner) { + return deepCopy((String) cached); } } diff --git a/src/main/java/com/epam/ta/reportportal/entity/Metadata.java b/src/main/java/com/epam/ta/reportportal/entity/Metadata.java index eb59dc1e2..6c8044505 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/Metadata.java +++ b/src/main/java/com/epam/ta/reportportal/entity/Metadata.java @@ -24,7 +24,7 @@ /** * @author Pavel Bortnik */ -public class Metadata extends JsonbUserType implements Serializable { +public class Metadata extends JsonbUserType implements Serializable { private Map metadata; @@ -36,7 +36,12 @@ public Metadata(Map metadata) { } @Override - public Class returnedClass() { + public int getSqlType() { + return 0; + } + + @Override + public Class returnedClass() { return Metadata.class; } diff --git a/src/main/java/com/epam/ta/reportportal/entity/OwnedEntity.java b/src/main/java/com/epam/ta/reportportal/entity/OwnedEntity.java index 92846afa3..bb2a8779e 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/OwnedEntity.java +++ b/src/main/java/com/epam/ta/reportportal/entity/OwnedEntity.java @@ -18,7 +18,7 @@ import com.epam.ta.reportportal.entity.project.Project; -import javax.persistence.*; +import jakarta.persistence.*; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/ServerSettings.java b/src/main/java/com/epam/ta/reportportal/entity/ServerSettings.java index 8e115b9ad..7482fb6f3 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/ServerSettings.java +++ b/src/main/java/com/epam/ta/reportportal/entity/ServerSettings.java @@ -18,12 +18,12 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "server_settings", schema = "public") diff --git a/src/main/java/com/epam/ta/reportportal/entity/activity/Activity.java b/src/main/java/com/epam/ta/reportportal/entity/activity/Activity.java index a40a32519..d60a6438d 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/activity/Activity.java +++ b/src/main/java/com/epam/ta/reportportal/entity/activity/Activity.java @@ -20,21 +20,23 @@ import java.io.Serializable; import java.time.Instant; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.Transient; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.persistence.Transient; import lombok.Getter; import lombok.Setter; import lombok.ToString; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; + /** * Activity table entity @@ -43,7 +45,6 @@ */ @Entity @Table(name = "activity", schema = "public") -@TypeDef(name = "activityDetails", typeClass = ActivityDetails.class) @Getter @Setter @ToString @@ -60,6 +61,7 @@ public class Activity implements Serializable { @Column(name = "action", nullable = false) @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) private EventAction action; @Column(name = "event_name", nullable = false) @@ -67,6 +69,7 @@ public class Activity implements Serializable { @Column(name = "priority", nullable = false) @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) private EventPriority priority; @Column(name = "object_id") @@ -76,6 +79,7 @@ public class Activity implements Serializable { private String objectName; @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "object_type", nullable = false) private EventObject objectType; @@ -86,7 +90,7 @@ public class Activity implements Serializable { private String projectName; @Column(name = "details") - @Type(type = "activityDetails") + @Type(ActivityDetails.class) private ActivityDetails details; @Column(name = "subject_id", precision = 32) @@ -96,6 +100,7 @@ public class Activity implements Serializable { private String subjectName; @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "subject_type", nullable = false) private EventSubject subjectType; diff --git a/src/main/java/com/epam/ta/reportportal/entity/activity/ActivityDetails.java b/src/main/java/com/epam/ta/reportportal/entity/activity/ActivityDetails.java index 08b159e2c..2aafa8073 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/activity/ActivityDetails.java +++ b/src/main/java/com/epam/ta/reportportal/entity/activity/ActivityDetails.java @@ -20,34 +20,27 @@ import com.google.common.collect.Lists; import java.io.Serializable; import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; /** * @author Ihar Kahadouski */ -public class ActivityDetails extends JsonbUserType implements Serializable { +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor +public class ActivityDetails extends JsonbUserType implements Serializable { private List history = Lists.newArrayList(); - public ActivityDetails() { - } - - public ActivityDetails(List history) { - this.history = history; - } - @Override - public Class returnedClass() { + public Class returnedClass() { return ActivityDetails.class; } - public List getHistory() { - return history; - } - - public void setHistory(List history) { - this.history = history; - } - public void addHistoryField(HistoryField historyField) { history.add(historyField); } @@ -57,4 +50,4 @@ public String toString() { return "ActivityDetails{" + "history=" + history + '}'; } -} \ No newline at end of file +} diff --git a/src/main/java/com/epam/ta/reportportal/entity/analytics/AnalyticsData.java b/src/main/java/com/epam/ta/reportportal/entity/analytics/AnalyticsData.java index e354f5da9..057e3a5a4 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/analytics/AnalyticsData.java +++ b/src/main/java/com/epam/ta/reportportal/entity/analytics/AnalyticsData.java @@ -18,28 +18,26 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import com.epam.ta.reportportal.entity.Metadata; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import java.io.Serializable; import java.time.Instant; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; import org.springframework.data.annotation.CreatedDate; /** * @author Siarhei Hrabko */ @Entity -@TypeDef(name = "meta", typeClass = Metadata.class) @Table(name = "analytics_data", schema = "public") @Getter @Setter @@ -58,7 +56,7 @@ public class AnalyticsData implements Serializable { private String type; @Column(name = "metadata") - @Type(type = "meta") + @Type(Metadata.class) private Metadata metadata; @Column(name = "created_at", nullable = false) diff --git a/src/main/java/com/epam/ta/reportportal/entity/attachment/Attachment.java b/src/main/java/com/epam/ta/reportportal/entity/attachment/Attachment.java index 979628ecc..05bf65e50 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/attachment/Attachment.java +++ b/src/main/java/com/epam/ta/reportportal/entity/attachment/Attachment.java @@ -20,13 +20,13 @@ import java.io.Serializable; import java.time.Instant; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/attribute/Attribute.java b/src/main/java/com/epam/ta/reportportal/entity/attribute/Attribute.java index 0f37999d0..8639426b6 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/attribute/Attribute.java +++ b/src/main/java/com/epam/ta/reportportal/entity/attribute/Attribute.java @@ -18,12 +18,12 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Andrey Plisunov diff --git a/src/main/java/com/epam/ta/reportportal/entity/bts/Ticket.java b/src/main/java/com/epam/ta/reportportal/entity/bts/Ticket.java index 5bfcabe1d..9be184418 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/bts/Ticket.java +++ b/src/main/java/com/epam/ta/reportportal/entity/bts/Ticket.java @@ -23,14 +23,14 @@ import java.time.Instant; import java.util.Objects; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/cluster/Cluster.java b/src/main/java/com/epam/ta/reportportal/entity/cluster/Cluster.java index 44753792e..9723bfc4e 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/cluster/Cluster.java +++ b/src/main/java/com/epam/ta/reportportal/entity/cluster/Cluster.java @@ -17,12 +17,12 @@ package com.epam.ta.reportportal.entity.cluster; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/cluster/ClusterTestItem.java b/src/main/java/com/epam/ta/reportportal/entity/cluster/ClusterTestItem.java index 3a6ee648d..75f36cabb 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/cluster/ClusterTestItem.java +++ b/src/main/java/com/epam/ta/reportportal/entity/cluster/ClusterTestItem.java @@ -15,12 +15,12 @@ */ package com.epam.ta.reportportal.entity.cluster; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Andrei Piankouski @@ -64,4 +64,4 @@ public Long getCluster() { public void setCluster(Long clusterId) { this.clusterId = clusterId; } -} \ No newline at end of file +} diff --git a/src/main/java/com/epam/ta/reportportal/entity/dashboard/Dashboard.java b/src/main/java/com/epam/ta/reportportal/entity/dashboard/Dashboard.java index c37050853..9d18a6b9b 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/dashboard/Dashboard.java +++ b/src/main/java/com/epam/ta/reportportal/entity/dashboard/Dashboard.java @@ -19,15 +19,17 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import com.epam.ta.reportportal.entity.OwnedEntity; import com.google.common.collect.Sets; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToMany; import java.io.Serializable; import java.time.Instant; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.FetchType; -import javax.persistence.OneToMany; +import lombok.Getter; +import lombok.Setter; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; import org.springframework.data.annotation.CreatedDate; @@ -38,6 +40,8 @@ */ @Entity @EntityListeners(AuditingEntityListener.class) +@Getter +@Setter public class Dashboard extends OwnedEntity implements Serializable { @Column(name = "name") @@ -55,34 +59,6 @@ public class Dashboard extends OwnedEntity implements Serializable { @Fetch(value = FetchMode.JOIN) private Set widgets = Sets.newHashSet(); - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Instant getCreationDate() { - return creationDate; - } - - public void setCreationDate(Instant creationDate) { - this.creationDate = creationDate; - } - - public Set getDashboardWidgets() { - return widgets; - } - public void addWidget(DashboardWidget widget) { widgets.add(widget); } diff --git a/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidget.java b/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidget.java index dbc4225ea..bdda95480 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidget.java +++ b/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidget.java @@ -18,17 +18,21 @@ import com.epam.ta.reportportal.entity.widget.Widget; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.MapsId; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapsId; +import jakarta.persistence.Table; +import lombok.Getter; +import lombok.Setter; /** * @author Pavel Bortnik */ +@Setter +@Getter @Entity @Table(name = "dashboard_widget") public class DashboardWidget implements Serializable { @@ -37,11 +41,11 @@ public class DashboardWidget implements Serializable { private DashboardWidgetId id; @ManyToOne(fetch = FetchType.EAGER) - @MapsId("dashboard_id") + @MapsId("dashboardId") private Dashboard dashboard; @ManyToOne(fetch = FetchType.EAGER) - @MapsId("widget_id") + @MapsId("widgetId") private Widget widget; @Column(name = "widget_name") @@ -68,95 +72,7 @@ public class DashboardWidget implements Serializable { @Column(name = "widget_position_y") private int positionY; - public DashboardWidgetId getId() { - return id; - } - - public void setId(DashboardWidgetId id) { - this.id = id; - } - - public Dashboard getDashboard() { - return dashboard; - } - - public void setDashboard(Dashboard dashboard) { - this.dashboard = dashboard; - } - - public Widget getWidget() { - return widget; - } - - public void setWidget(Widget widget) { - this.widget = widget; - } - - public String getWidgetName() { - return widgetName; - } - - public void setWidgetName(String widgetName) { - this.widgetName = widgetName; - } - - public String getWidgetOwner() { - return widgetOwner; - } - - public void setWidgetOwner(String widgetOwner) { - this.widgetOwner = widgetOwner; - } - - public boolean isCreatedOn() { - return createdOn; - } - - public void setCreatedOn(boolean createdOn) { - this.createdOn = createdOn; - } - - public int getWidth() { - return width; - } - - public void setWidth(int width) { - this.width = width; - } - - public String getWidgetType() { - return widgetType; - } - - public void setWidgetType(String widgetType) { - this.widgetType = widgetType; - } - - public int getHeight() { - return height; - } - - public void setHeight(int height) { - this.height = height; - } - - public int getPositionX() { - return positionX; - } - - public void setPositionX(int positionX) { - this.positionX = positionX; - } - - public int getPositionY() { - return positionY; - } - - public void setPositionY(int positionY) { - this.positionY = positionY; - } - - @Override + @Override public boolean equals(Object o) { if (this == o) { return true; diff --git a/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidgetId.java b/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidgetId.java index b97825235..9ab518aa8 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidgetId.java +++ b/src/main/java/com/epam/ta/reportportal/entity/dashboard/DashboardWidgetId.java @@ -16,13 +16,17 @@ package com.epam.ta.reportportal.entity.dashboard; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import lombok.Getter; +import lombok.Setter; /** * @author Pavel Bortnik */ +@Getter +@Setter @Embeddable public class DashboardWidgetId implements Serializable { @@ -40,22 +44,6 @@ public DashboardWidgetId(Long dashboardId, Long widgetId) { this.widgetId = widgetId; } - public Long getDashboardId() { - return dashboardId; - } - - public void setDashboardId(Long dashboardId) { - this.dashboardId = dashboardId; - } - - public Long getWidgetId() { - return widgetId; - } - - public void setWidgetId(Long widgetId) { - this.widgetId = widgetId; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/com/epam/ta/reportportal/entity/enums/PostgreSQLEnumType.java b/src/main/java/com/epam/ta/reportportal/entity/enums/PostgreSQLEnumType.java deleted file mode 100644 index c7eaeadfd..000000000 --- a/src/main/java/com/epam/ta/reportportal/entity/enums/PostgreSQLEnumType.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2019 EPAM Systems - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.epam.ta.reportportal.entity.enums; - -import java.sql.PreparedStatement; -import java.sql.SQLException; -import java.sql.Types; -import org.hibernate.HibernateException; -import org.hibernate.engine.spi.SharedSessionContractImplementor; -import org.hibernate.type.EnumType; - -/** - * @author Pavel Bortnik - */ -public class PostgreSQLEnumType extends EnumType { - - public void nullSafeSet(PreparedStatement st, Object value, int index, - SharedSessionContractImplementor session) - throws HibernateException, SQLException { - if (value == null) { - st.setNull(index, Types.OTHER); - } else { - st.setObject(index, value.toString(), Types.OTHER); - } - } - -} diff --git a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/AnalyzerModeConverter.java b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/AnalyzerModeConverter.java index 48c2fb785..0b2fb68b0 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/AnalyzerModeConverter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/AnalyzerModeConverter.java @@ -18,8 +18,8 @@ import com.epam.ta.reportportal.entity.AnalyzeMode; import com.epam.reportportal.rules.exception.ReportPortalException; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/LogLevelConverter.java b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/LogLevelConverter.java index a84f68fee..f9499f42b 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/LogLevelConverter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/LogLevelConverter.java @@ -17,8 +17,8 @@ package com.epam.ta.reportportal.entity.enums.converter; import com.epam.ta.reportportal.entity.enums.LogLevel; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectRoleConverter.java b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectRoleConverter.java index 1b19fef77..9a16bfd05 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectRoleConverter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectRoleConverter.java @@ -18,8 +18,8 @@ import com.epam.ta.reportportal.entity.project.ProjectRole; import com.epam.reportportal.rules.exception.ReportPortalException; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectTypeConverter.java b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectTypeConverter.java index b5ddb9980..a800b1bf1 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectTypeConverter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/ProjectTypeConverter.java @@ -18,8 +18,8 @@ import com.epam.ta.reportportal.entity.enums.ProjectType; import com.epam.reportportal.rules.exception.ReportPortalException; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/UserTypeConverter.java b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/UserTypeConverter.java index 3e49b99aa..7a74e70ee 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/enums/converter/UserTypeConverter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/enums/converter/UserTypeConverter.java @@ -18,8 +18,8 @@ import com.epam.ta.reportportal.entity.user.UserType; import com.epam.reportportal.rules.exception.ReportPortalException; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/filter/FilterSort.java b/src/main/java/com/epam/ta/reportportal/entity/filter/FilterSort.java index 93b3b658f..ef83d65a1 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/filter/FilterSort.java +++ b/src/main/java/com/epam/ta/reportportal/entity/filter/FilterSort.java @@ -16,27 +16,33 @@ package com.epam.ta.reportportal.entity.filter; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import org.hibernate.annotations.JdbcType; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; import org.springframework.data.domain.Sort; /** * @author Pavel Bortnik */ @Entity -@TypeDef(name = "pqsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "filter_sort", schema = "public") +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor public class FilterSort implements Serializable { @Id @@ -49,33 +55,9 @@ public class FilterSort implements Serializable { @Column(name = "direction", nullable = false) @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private Sort.Direction direction; - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getField() { - return field; - } - - public void setField(String field) { - this.field = field; - } - - public Sort.Direction getDirection() { - return direction; - } - - public void setDirection(Sort.Direction direction) { - this.direction = direction; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/com/epam/ta/reportportal/entity/filter/UserFilter.java b/src/main/java/com/epam/ta/reportportal/entity/filter/UserFilter.java index d1490a6bc..47b1fd3a7 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/filter/UserFilter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/filter/UserFilter.java @@ -18,36 +18,37 @@ import com.epam.ta.reportportal.commons.querygen.FilterCondition; import com.epam.ta.reportportal.entity.OwnedEntity; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.google.common.collect.Sets; import java.io.Serializable; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; + /** * @author Pavel Bortnik */ @Entity @Table(name = "filter") -@TypeDef(name = "pgsql_enum", typeClass = PostgreSQLEnumType.class) + public class UserFilter extends OwnedEntity implements Serializable { @Column(name = "name") private String name; @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "target") private ObjectType targetClass; diff --git a/src/main/java/com/epam/ta/reportportal/entity/integration/Integration.java b/src/main/java/com/epam/ta/reportportal/entity/integration/Integration.java index 482b459ce..ecf067a13 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/integration/Integration.java +++ b/src/main/java/com/epam/ta/reportportal/entity/integration/Integration.java @@ -20,20 +20,21 @@ import com.epam.ta.reportportal.entity.project.Project; import java.io.Serializable; import java.time.Instant; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; +import lombok.Getter; +import lombok.Setter; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; @@ -42,9 +43,10 @@ */ @Entity @EntityListeners(AuditingEntityListener.class) -@TypeDef(name = "params", typeClass = IntegrationParams.class) @Table(name = "integration", schema = "public") @Inheritance(strategy = InheritanceType.JOINED) +@Getter +@Setter public class Integration implements Serializable { @Id @@ -63,7 +65,7 @@ public class Integration implements Serializable { @JoinColumn(name = "type") private IntegrationType type; - @Type(type = "params") + @Type(IntegrationParams.class) @Column(name = "params") private IntegrationParams params; @@ -90,68 +92,5 @@ public Integration(Long id, Project project, IntegrationType type, IntegrationPa public Integration() { } - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Project getProject() { - return project; - } - - public void setProject(Project project) { - this.project = project; - } - - public IntegrationType getType() { - return type; - } - - public void setType(IntegrationType type) { - this.type = type; - } - - public IntegrationParams getParams() { - return params; - } - - public void setParams(IntegrationParams params) { - this.params = params; - } - - public String getCreator() { - return creator; - } - - public void setCreator(String creator) { - this.creator = creator; - } - - public Instant getCreationDate() { - return creationDate; - } - - public void setCreationDate(Instant creationDate) { - this.creationDate = creationDate; - } - - public boolean isEnabled() { - return enabled; - } - - public void setEnabled(boolean enabled) { - this.enabled = enabled; - } } diff --git a/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationParams.java b/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationParams.java index 68bdd8ac5..8515f7f3e 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationParams.java +++ b/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationParams.java @@ -19,31 +19,25 @@ import com.epam.ta.reportportal.commons.JsonbUserType; import java.io.Serializable; import java.util.Map; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; /** * @author Yauheni_Martynau */ -public class IntegrationParams extends JsonbUserType implements Serializable { +@Setter +@Getter +@NoArgsConstructor +@AllArgsConstructor +public class IntegrationParams extends JsonbUserType implements Serializable { private Map params; - public IntegrationParams() { - } - - public IntegrationParams(Map params) { - this.params = params; - } - @Override - public Class returnedClass() { + public Class returnedClass() { return IntegrationParams.class; } - public Map getParams() { - return params; - } - - public void setParams(Map params) { - this.params = params; - } } diff --git a/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationType.java b/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationType.java index f97375ab2..ddc4fb010 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationType.java +++ b/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationType.java @@ -19,33 +19,39 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import com.epam.ta.reportportal.entity.enums.IntegrationAuthFlowEnum; import com.epam.ta.reportportal.entity.enums.IntegrationGroupEnum; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.google.common.collect.Sets; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.time.Instant; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; import org.springframework.data.annotation.CreatedDate; /** * @author Yauheni_Martynau */ @Entity -@TypeDef(name = "details", typeClass = IntegrationTypeDetails.class) -@TypeDef(name = "pgsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "integration_type", schema = "public") +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor public class IntegrationType implements Serializable { @Id @@ -57,7 +63,7 @@ public class IntegrationType implements Serializable { private String name; @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "auth_flow") private IntegrationAuthFlowEnum authFlow; @@ -67,81 +73,18 @@ public class IntegrationType implements Serializable { private Instant creationDate; @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "group_type", nullable = false) private IntegrationGroupEnum integrationGroup; @Column(name = "enabled") private boolean enabled; - @Type(type = "details") + @Type(IntegrationTypeDetails.class) @Column(name = "details") private IntegrationTypeDetails details; @OneToMany(mappedBy = "type", fetch = FetchType.LAZY, orphanRemoval = true) private Set integrations = Sets.newHashSet(); - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public IntegrationAuthFlowEnum getAuthFlow() { - return authFlow; - } - - public void setAuthFlow(IntegrationAuthFlowEnum authFlow) { - this.authFlow = authFlow; - } - - public Instant getCreationDate() { - return creationDate; - } - - public void setCreationDate(Instant creationDate) { - this.creationDate = creationDate; - } - - public IntegrationGroupEnum getIntegrationGroup() { - return integrationGroup; - } - - public void setIntegrationGroup(IntegrationGroupEnum integrationGroup) { - this.integrationGroup = integrationGroup; - } - - public boolean isEnabled() { - return enabled; - } - - public void setEnabled(boolean enabled) { - this.enabled = enabled; - } - - public IntegrationTypeDetails getDetails() { - return details; - } - - public void setDetails(IntegrationTypeDetails details) { - this.details = details; - } - - public Set getIntegrations() { - return integrations; - } - - public void setIntegrations(Set integrations) { - this.integrations = integrations; - } } diff --git a/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationTypeDetails.java b/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationTypeDetails.java index 25e5f43d2..5abcec9cb 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationTypeDetails.java +++ b/src/main/java/com/epam/ta/reportportal/entity/integration/IntegrationTypeDetails.java @@ -23,12 +23,12 @@ /** * @author Yauheni_Martynau */ -public class IntegrationTypeDetails extends JsonbUserType implements Serializable { +public class IntegrationTypeDetails extends JsonbUserType implements Serializable { private Map details; @Override - public Class returnedClass() { + public Class returnedClass() { return IntegrationTypeDetails.class; } diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/Parameter.java b/src/main/java/com/epam/ta/reportportal/entity/item/Parameter.java index 784a08917..7f81725a9 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/Parameter.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/Parameter.java @@ -17,8 +17,8 @@ package com.epam.ta.reportportal.entity.item; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/TestItem.java b/src/main/java/com/epam/ta/reportportal/entity/item/TestItem.java index 99b18c5fe..07122abb0 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/TestItem.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/TestItem.java @@ -18,7 +18,6 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import com.epam.ta.reportportal.entity.ItemAttribute; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.epam.ta.reportportal.entity.enums.TestItemTypeEnum; import com.epam.ta.reportportal.entity.log.Log; import com.epam.ta.reportportal.entity.pattern.PatternTemplateTestItem; @@ -27,28 +26,29 @@ import java.time.Instant; import java.util.Objects; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.OrderBy; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; @@ -57,7 +57,6 @@ */ @Entity @EntityListeners(AuditingEntityListener.class) -@TypeDef(name = "pgsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "test_item", schema = "public") public class TestItem implements Serializable { @@ -76,7 +75,7 @@ public class TestItem implements Serializable { private String codeRef; @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "type", nullable = false) private TestItemTypeEnum type; @@ -117,7 +116,7 @@ public class TestItem implements Serializable { private Set logs = Sets.newHashSet(); @Column(name = "path", nullable = false, columnDefinition = "ltree") - @Type(type = "com.epam.ta.reportportal.entity.LTreeType") + @Type(com.epam.ta.reportportal.entity.LTreeType.class) private String path; @Column(name = "retry_of", precision = 64) diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/TestItemResults.java b/src/main/java/com/epam/ta/reportportal/entity/item/TestItemResults.java index 168210fc7..f56e26215 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/TestItemResults.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/TestItemResults.java @@ -17,7 +17,6 @@ package com.epam.ta.reportportal.entity.item; import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.epam.ta.reportportal.entity.enums.StatusEnum; import com.epam.ta.reportportal.entity.item.issue.IssueEntity; import com.epam.ta.reportportal.entity.statistics.Statistics; @@ -26,29 +25,30 @@ import java.time.Instant; import java.util.Objects; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.MapsId; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.MapsId; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Table; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; + /** * @author Pavel Bortnik */ @Entity -@TypeDef(name = "pqsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "test_item_results", schema = "public") public class TestItemResults implements Serializable { @@ -58,7 +58,7 @@ public class TestItemResults implements Serializable { @Column(name = "status", nullable = false) @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private StatusEnum status; @Column(name = "end_time") diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueEntity.java b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueEntity.java index a7478d2b4..4d8de688b 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueEntity.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueEntity.java @@ -22,19 +22,19 @@ import java.io.Serializable; import java.util.Objects; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.Index; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapsId; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapsId; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueGroup.java b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueGroup.java index 5d6f994c8..169e27987 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueGroup.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueGroup.java @@ -19,15 +19,17 @@ import com.epam.ta.reportportal.entity.enums.TestItemIssueGroup; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; /** * @author Pavel Bortnik @@ -43,7 +45,7 @@ public class IssueGroup implements Serializable { @Column(name = "issue_group") @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private TestItemIssueGroup testItemIssueGroup; public IssueGroup() { diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java index 83f3777a8..7190d65fd 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java @@ -16,29 +16,34 @@ package com.epam.ta.reportportal.entity.item.issue; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.Objects; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Index; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; -import org.hibernate.annotations.TypeDef; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; /** * @author Pavel Bortnik */ @Entity -@TypeDef(name = "pqsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "issue_type", schema = "public", indexes = { @Index(name = "issue_type_pk", unique = true, columnList = "id ASC")}) +@Getter +@Setter +@AllArgsConstructor +@NoArgsConstructor public class IssueType implements Serializable { @Id @@ -62,66 +67,6 @@ public class IssueType implements Serializable { @Column(name = "hex_color", length = 7) private String hexColor; - public IssueType() { - } - - public IssueType(IssueGroup issueGroup, String locator, String longName, String shortName, - String hexColor) { - this.issueGroup = issueGroup; - this.locator = locator; - this.longName = longName; - this.shortName = shortName; - this.hexColor = hexColor; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public IssueGroup getIssueGroup() { - return issueGroup; - } - - public void setIssueGroup(IssueGroup issueGroup) { - this.issueGroup = issueGroup; - } - - public String getLocator() { - return locator; - } - - public void setLocator(String locator) { - this.locator = locator; - } - - public String getLongName() { - return longName; - } - - public void setLongName(String longName) { - this.longName = longName; - } - - public String getShortName() { - return shortName; - } - - public void setShortName(String shortName) { - this.shortName = shortName; - } - - public String getHexColor() { - return hexColor; - } - - public void setHexColor(String hexColor) { - this.hexColor = hexColor; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/com/epam/ta/reportportal/entity/launch/Launch.java b/src/main/java/com/epam/ta/reportportal/entity/launch/Launch.java index cdc43bafe..a9d92e656 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/launch/Launch.java +++ b/src/main/java/com/epam/ta/reportportal/entity/launch/Launch.java @@ -19,7 +19,6 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import com.epam.ta.reportportal.entity.ItemAttribute; import com.epam.ta.reportportal.entity.enums.LaunchModeEnum; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.epam.ta.reportportal.entity.enums.RetentionPolicyEnum; import com.epam.ta.reportportal.entity.enums.StatusEnum; import com.epam.ta.reportportal.entity.log.Log; @@ -29,26 +28,28 @@ import java.time.Instant; import java.util.Objects; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Index; -import javax.persistence.JoinColumn; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; + +import org.hibernate.dialect.PostgreSQLEnumJdbcType; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; @@ -58,7 +59,6 @@ @Entity @EntityListeners(AuditingEntityListener.class) -@TypeDef(name = "pqsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "launch", schema = "public", uniqueConstraints = { @UniqueConstraint(columnNames = {"name", "number", "project_id"})}, indexes = { @Index(name = "launch_pk", unique = true, columnList = "id ASC"), @@ -109,17 +109,17 @@ public class Launch implements Serializable { @Column(name = "mode", nullable = false) @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private LaunchModeEnum mode; @Column(name = "status", nullable = false) @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private StatusEnum status; @Column(name = "retention_policy", nullable = false) @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private RetentionPolicyEnum retentionPolicy; @OneToMany(mappedBy = "launch", cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true) diff --git a/src/main/java/com/epam/ta/reportportal/entity/log/Log.java b/src/main/java/com/epam/ta/reportportal/entity/log/Log.java index 9cbca40a6..075dd1ebe 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/log/Log.java +++ b/src/main/java/com/epam/ta/reportportal/entity/log/Log.java @@ -23,19 +23,19 @@ import java.io.Serializable; import java.time.Instant; import java.util.Objects; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Index; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; diff --git a/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistration.java b/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistration.java index 1dd0d9bf2..912e25edb 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistration.java +++ b/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistration.java @@ -19,13 +19,13 @@ import java.io.Serializable; import java.util.Objects; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; /** * @author Andrei Varabyeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationRestriction.java b/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationRestriction.java index f2788a537..2265eb8d7 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationRestriction.java +++ b/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationRestriction.java @@ -18,14 +18,14 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "oauth_registration_restriction", schema = "public") diff --git a/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationScope.java b/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationScope.java index 565902ad0..ead5d4385 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationScope.java +++ b/src/main/java/com/epam/ta/reportportal/entity/oauth/OAuthRegistrationScope.java @@ -18,14 +18,14 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Andrei Varabyeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplate.java b/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplate.java index ff04b132b..8d0134460 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplate.java +++ b/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplate.java @@ -18,14 +18,16 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import org.hibernate.annotations.JdbcType; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; /** * @author Ivan Budayeu @@ -45,6 +47,7 @@ public class PatternTemplate implements Serializable { private String value; @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) @Column(name = "type") private PatternTemplateType templateType; diff --git a/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItem.java b/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItem.java index a9c48830d..2fa5d0fbd 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItem.java +++ b/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItem.java @@ -19,12 +19,12 @@ import com.epam.ta.reportportal.entity.item.TestItem; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItemKey.java b/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItemKey.java index 265eebb6f..6de419bcc 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItemKey.java +++ b/src/main/java/com/epam/ta/reportportal/entity/pattern/PatternTemplateTestItemKey.java @@ -19,9 +19,9 @@ import com.epam.ta.reportportal.entity.item.TestItem; import java.io.Serializable; import java.util.Objects; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/preference/UserPreference.java b/src/main/java/com/epam/ta/reportportal/entity/preference/UserPreference.java index 04946daa6..bef592cf8 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/preference/UserPreference.java +++ b/src/main/java/com/epam/ta/reportportal/entity/preference/UserPreference.java @@ -20,13 +20,13 @@ import com.epam.ta.reportportal.entity.project.Project; import com.epam.ta.reportportal.entity.user.User; import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/Project.java b/src/main/java/com/epam/ta/reportportal/entity/project/Project.java index 055fbc664..1c3209ad5 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/Project.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/Project.java @@ -24,34 +24,34 @@ import com.epam.ta.reportportal.entity.project.email.SenderCase; import com.epam.ta.reportportal.entity.user.ProjectUser; import com.google.common.collect.Sets; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; import java.io.Serializable; import java.time.Instant; import java.util.Objects; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; +import org.hibernate.annotations.JdbcTypeCode; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.type.SqlTypes; /** * @author Ivan Budayeu */ @Entity -@TypeDef(name = "json", typeClass = Metadata.class) @Table(name = "project", schema = "public") @Getter @Setter @@ -92,8 +92,9 @@ public class Project implements Serializable { @Convert(converter = JpaInstantConverter.class) private Instant creationDate; - @Type(type = "json") + @JdbcTypeCode(SqlTypes.JSON) @Column(name = "metadata") + @Type(Metadata.class) private Metadata metadata; @Column(name = "organization") diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttribute.java b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttribute.java index 36a9f1c87..b0c689e27 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttribute.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttribute.java @@ -19,13 +19,13 @@ import com.epam.ta.reportportal.entity.attribute.Attribute; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Andrey Plisunov diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttributeKey.java b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttributeKey.java index 921f62da3..f56313ebd 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttributeKey.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectAttributeKey.java @@ -18,9 +18,9 @@ import com.epam.ta.reportportal.entity.attribute.Attribute; import java.io.Serializable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueType.java b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueType.java index bb1a38609..90559ee38 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueType.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueType.java @@ -19,12 +19,12 @@ import com.epam.ta.reportportal.entity.item.issue.IssueType; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueTypeKey.java b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueTypeKey.java index 805d38722..722213c10 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueTypeKey.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectIssueTypeKey.java @@ -19,9 +19,9 @@ import com.epam.ta.reportportal.entity.item.issue.IssueType; import java.io.Serializable; import java.util.Objects; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; /** * @author Pavel Bortnik diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectUtils.java b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectUtils.java index e7fecf39c..c8a988f61 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/ProjectUtils.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/ProjectUtils.java @@ -128,7 +128,7 @@ public static Project excludeProjectRecipients(Iterable users, Project pro /* Current recipients of specified project */ Set cases = project.getSenderCases(); if (null != cases) { - cases.stream().forEach(c -> { + cases.forEach(c -> { // saved - list of saved user emails before changes Set saved = c.getRecipients(); c.setRecipients(saved.stream().filter(it -> !toExclude.contains(it.toLowerCase())) @@ -242,4 +242,4 @@ private static Predicate processRecipientsEmails(final Iterable public static String getOwner() { return OWNER; } -} \ No newline at end of file +} diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/email/LaunchAttributeRule.java b/src/main/java/com/epam/ta/reportportal/entity/project/email/LaunchAttributeRule.java index 9d81c7384..6cc06f81c 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/email/LaunchAttributeRule.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/email/LaunchAttributeRule.java @@ -18,14 +18,14 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java b/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java index 66c39edde..8943eabc1 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java @@ -17,38 +17,44 @@ package com.epam.ta.reportportal.entity.project.email; import com.epam.ta.reportportal.entity.enums.LogicalOperator; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.epam.ta.reportportal.entity.enums.SendCase; -import com.epam.ta.reportportal.entity.integration.IntegrationParams; import com.epam.ta.reportportal.entity.project.Project; +import jakarta.persistence.CascadeType; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; + /** * @author Ivan Budayeu */ @Entity @Table(name = "sender_case") -@TypeDef(name = "pqsql_enum", typeClass = PostgreSQLEnumType.class) -@TypeDef(name = "ruleDetails", typeClass = SenderCaseOptions.class) +@Getter +@Setter +@AllArgsConstructor +@NoArgsConstructor public class SenderCase implements Serializable { @Id @@ -73,9 +79,9 @@ public class SenderCase implements Serializable { @OrderBy private Set launchAttributeRules; - @Enumerated(EnumType.STRING) @Column(name = "send_case") - @Type(type = "pqsql_enum") + @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) private SendCase sendCase; @ManyToOne(fetch = FetchType.LAZY) @@ -88,116 +94,13 @@ public class SenderCase implements Serializable { @Column(name = "rule_type") private String type; - @Type(type = "ruleDetails") + @Type(SenderCaseOptions.class) @Column(name = "rule_details") private SenderCaseOptions ruleDetails; - @Enumerated(EnumType.STRING) - @Column(name = "attributes_operator") - @Type(type = "pqsql_enum") - private LogicalOperator attributesOperator; - - public SenderCase() { - } - - public SenderCase(String ruleName, Set recipients, Set launchNames, - Set launchAttributeRules, SendCase sendCase, - boolean enabled, String type, LogicalOperator attributesOperator) { - this.ruleName = ruleName; - this.recipients = recipients; - this.launchNames = launchNames; - this.launchAttributeRules = launchAttributeRules; - this.sendCase = sendCase; - this.enabled = enabled; - this.type = type; - this.attributesOperator = attributesOperator; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getRuleName() { - return ruleName; - } - - public void setRuleName(String ruleName) { - this.ruleName = ruleName; - } - - public Set getRecipients() { - return recipients; - } - - public void setRecipients(Set recipients) { - this.recipients = recipients; - } - - public Set getLaunchNames() { - return launchNames; - } - - public void setLaunchNames(Set launchNames) { - this.launchNames = launchNames; - } - - public Set getLaunchAttributeRules() { - return launchAttributeRules; - } - - public void setLaunchAttributeRules(Set launchAttributeRules) { - this.launchAttributeRules = launchAttributeRules; - } - - public SendCase getSendCase() { - return sendCase; - } - - public void setSendCase(SendCase sendCase) { - this.sendCase = sendCase; - } - - public Project getProject() { - return project; - } - - public void setProject(Project project) { - this.project = project; - } - - public boolean isEnabled() { - return enabled; - } - - public void setEnabled(boolean enabled) { - this.enabled = enabled; - } - - public LogicalOperator getAttributesOperator() { - return attributesOperator; - } - - public void setAttributesOperator(LogicalOperator attributesOperator) { - this.attributesOperator = attributesOperator; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SenderCaseOptions getRuleDetails() { - return ruleDetails; - } - - public void setRuleDetails(SenderCaseOptions ruleDetails) { - this.ruleDetails = ruleDetails; - } -} \ No newline at end of file + @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) + @Column(name = "attributes_operator") + private LogicalOperator attributesOperator; + +} diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCaseOptions.java b/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCaseOptions.java index eb58d16a2..b765dd5a6 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCaseOptions.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCaseOptions.java @@ -18,25 +18,27 @@ import com.epam.ta.reportportal.commons.JsonbUserType; import java.io.Serializable; import java.util.Map; +import lombok.AllArgsConstructor; import lombok.Data; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; /** * @author Andrei Piankouski */ -@Data -public class SenderCaseOptions extends JsonbUserType implements Serializable { +@Getter +@Setter +@AllArgsConstructor +@NoArgsConstructor +@ToString +public class SenderCaseOptions extends JsonbUserType implements Serializable { private Map options; - public SenderCaseOptions() { - } - - public SenderCaseOptions(Map options) { - this.options = options; - } - @Override - public Class returnedClass() { + public Class returnedClass() { return SenderCaseOptions.class; } } diff --git a/src/main/java/com/epam/ta/reportportal/entity/statistics/Statistics.java b/src/main/java/com/epam/ta/reportportal/entity/statistics/Statistics.java index 620ffd5fb..24f8b2eda 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/statistics/Statistics.java +++ b/src/main/java/com/epam/ta/reportportal/entity/statistics/Statistics.java @@ -18,16 +18,16 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/statistics/StatisticsField.java b/src/main/java/com/epam/ta/reportportal/entity/statistics/StatisticsField.java index 3c27727db..d31cb396a 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/statistics/StatisticsField.java +++ b/src/main/java/com/epam/ta/reportportal/entity/statistics/StatisticsField.java @@ -18,12 +18,12 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Ivan Budaev diff --git a/src/main/java/com/epam/ta/reportportal/entity/user/ApiKey.java b/src/main/java/com/epam/ta/reportportal/entity/user/ApiKey.java index 83ff1fced..b68de8009 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/user/ApiKey.java +++ b/src/main/java/com/epam/ta/reportportal/entity/user/ApiKey.java @@ -19,13 +19,13 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import java.time.Instant; import java.time.LocalDate; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * Representation of ApiKeys table. diff --git a/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUser.java b/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUser.java index 2f79b76ee..f0bddf628 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUser.java +++ b/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUser.java @@ -16,28 +16,26 @@ package com.epam.ta.reportportal.entity.user; -import com.epam.ta.reportportal.entity.enums.PostgreSQLEnumType; import com.epam.ta.reportportal.entity.project.Project; import com.epam.ta.reportportal.entity.project.ProjectRole; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.MapsId; -import javax.persistence.Table; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import jakarta.persistence.Column; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapsId; +import jakarta.persistence.Table; +import org.hibernate.annotations.JdbcType; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; /** * @author Andrei Varabyeu */ @Entity -@TypeDef(name = "pqsql_enum", typeClass = PostgreSQLEnumType.class) @Table(name = "project_user", schema = "public") public class ProjectUser implements Serializable { @@ -54,7 +52,7 @@ public class ProjectUser implements Serializable { @Column(name = "project_role") @Enumerated(EnumType.STRING) - @Type(type = "pqsql_enum") + @JdbcType(PostgreSQLEnumJdbcType.class) private ProjectRole projectRole; public ProjectUserId getId() { diff --git a/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUserId.java b/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUserId.java index ebf7e5eff..63b59e65b 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUserId.java +++ b/src/main/java/com/epam/ta/reportportal/entity/user/ProjectUserId.java @@ -18,8 +18,8 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; /** * @author Andrei Varabyeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/user/RestorePasswordBid.java b/src/main/java/com/epam/ta/reportportal/entity/user/RestorePasswordBid.java index af1bfb8a7..66cc55d90 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/user/RestorePasswordBid.java +++ b/src/main/java/com/epam/ta/reportportal/entity/user/RestorePasswordBid.java @@ -21,11 +21,11 @@ import java.io.Serializable; import java.time.Instant; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.springframework.data.annotation.LastModifiedDate; /** diff --git a/src/main/java/com/epam/ta/reportportal/entity/user/User.java b/src/main/java/com/epam/ta/reportportal/entity/user/User.java index b44506e84..531015a9f 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/user/User.java +++ b/src/main/java/com/epam/ta/reportportal/entity/user/User.java @@ -18,27 +18,28 @@ import com.epam.ta.reportportal.entity.Metadata; import com.google.common.collect.Sets; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.Objects; import java.util.Set; import java.util.UUID; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; +import org.hibernate.dialect.PostgreSQLEnumJdbcType; /** * @author Andrei Varabyeu @@ -47,7 +48,6 @@ @Setter @NoArgsConstructor @Entity -@TypeDef(name = "meta", typeClass = Metadata.class) @Table(name = "users", schema = "public") @DynamicInsert public class User implements Serializable { @@ -79,6 +79,7 @@ public class User implements Serializable { @Column(name = "role") @Enumerated(EnumType.STRING) + @JdbcType(PostgreSQLEnumJdbcType.class) private UserRole role; @Column(name = "full_name") @@ -88,7 +89,7 @@ public class User implements Serializable { private boolean isExpired; @Column(name = "metadata") - @Type(type = "meta") + @Type(Metadata.class) private Metadata metadata; @Column(name = "attachment") diff --git a/src/main/java/com/epam/ta/reportportal/entity/user/UserCreationBid.java b/src/main/java/com/epam/ta/reportportal/entity/user/UserCreationBid.java index 096d9e761..cfdf3bf26 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/user/UserCreationBid.java +++ b/src/main/java/com/epam/ta/reportportal/entity/user/UserCreationBid.java @@ -21,17 +21,21 @@ import com.epam.ta.reportportal.entity.Modifiable; import java.io.Serializable; import java.time.Instant; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; + import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; @@ -40,7 +44,10 @@ */ @Entity @Table(name = "user_creation_bid") -@TypeDef(name = "json", typeClass = Metadata.class) +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor @EntityListeners(AuditingEntityListener.class) public class UserCreationBid implements Serializable, Modifiable { @@ -66,7 +73,7 @@ public class UserCreationBid implements Serializable, Modifiable { @JoinColumn(name = "inviting_user_id") private User invitingUser; - @Type(type = "json") + @Type(Metadata.class) @Column(name = "metadata") private Metadata metadata; diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/Widget.java b/src/main/java/com/epam/ta/reportportal/entity/widget/Widget.java index 88b08038b..c9882143c 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/Widget.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/Widget.java @@ -22,28 +22,27 @@ import com.google.common.collect.Sets; import java.io.Serializable; import java.util.Set; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; + /** * @author Pavel Bortnik */ @Entity @Table(name = "widget") -@TypeDef(name = "widgetOptions", typeClass = WidgetOptions.class) public class Widget extends OwnedEntity implements Serializable { @Column(name = "name") @@ -68,7 +67,7 @@ public class Widget extends OwnedEntity implements Serializable { @OrderBy(value = "id") private Set contentFields = Sets.newLinkedHashSet(); - @Type(type = "widgetOptions") + @Type(WidgetOptions.class) @Column(name = "widget_options") private WidgetOptions widgetOptions; diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/WidgetOptions.java b/src/main/java/com/epam/ta/reportportal/entity/widget/WidgetOptions.java index f42c3be89..894a4b69d 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/WidgetOptions.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/WidgetOptions.java @@ -19,31 +19,25 @@ import com.epam.ta.reportportal.commons.JsonbUserType; import java.io.Serializable; import java.util.Map; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; /** * @author Ivan Budayeu */ -public class WidgetOptions extends JsonbUserType implements Serializable { +@Getter +@Setter +@AllArgsConstructor +@NoArgsConstructor +public class WidgetOptions extends JsonbUserType implements Serializable { private Map options; - public WidgetOptions() { - } - - public WidgetOptions(Map options) { - this.options = options; - } - @Override - public Class returnedClass() { + public Class returnedClass() { return WidgetOptions.class; } - public Map getOptions() { - return options; - } - - public void setOptions(Map options) { - this.options = options; - } } diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/AbstractLaunchStatisticsContent.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/AbstractLaunchStatisticsContent.java index 07e247ed8..7b7237373 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/AbstractLaunchStatisticsContent.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/AbstractLaunchStatisticsContent.java @@ -23,8 +23,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.time.Instant; -import javax.persistence.Column; -import javax.persistence.Convert; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/CriteriaHistoryItem.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/CriteriaHistoryItem.java index 2fc14a66d..97d262ca9 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/CriteriaHistoryItem.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/CriteriaHistoryItem.java @@ -25,7 +25,7 @@ import java.io.Serializable; import java.time.Instant; import java.util.List; -import javax.persistence.Column; +import jakarta.persistence.Column; import lombok.Getter; import lombok.Setter; diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/FlakyCasesTableContent.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/FlakyCasesTableContent.java index d77a3e16a..55ce33e8e 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/FlakyCasesTableContent.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/FlakyCasesTableContent.java @@ -27,7 +27,7 @@ import java.io.Serializable; import java.time.Instant; import java.util.List; -import javax.persistence.Column; +import jakarta.persistence.Column; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/LaunchesDurationContent.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/LaunchesDurationContent.java index c085bdb00..d2b54afd2 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/LaunchesDurationContent.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/LaunchesDurationContent.java @@ -22,8 +22,8 @@ import com.epam.ta.reportportal.dao.converters.JpaInstantConverter; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Instant; -import javax.persistence.Column; -import javax.persistence.Convert; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/MostTimeConsumingTestCasesContent.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/MostTimeConsumingTestCasesContent.java index 4d69bc93d..cfdc35c5f 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/MostTimeConsumingTestCasesContent.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/MostTimeConsumingTestCasesContent.java @@ -25,7 +25,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; -import javax.persistence.Column; +import jakarta.persistence.Column; /** * @author Ivan Budaev diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/PassingRateStatisticsResult.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/PassingRateStatisticsResult.java index c37ab2fd8..7a56f71b1 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/PassingRateStatisticsResult.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/PassingRateStatisticsResult.java @@ -24,7 +24,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; -import javax.persistence.Column; +import jakarta.persistence.Column; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/ProductStatusStatisticsContent.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/ProductStatusStatisticsContent.java index 3bf1ad711..ab8086b2b 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/ProductStatusStatisticsContent.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/ProductStatusStatisticsContent.java @@ -30,7 +30,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; -import javax.persistence.Column; +import jakarta.persistence.Column; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/entity/widget/content/UniqueBugContent.java b/src/main/java/com/epam/ta/reportportal/entity/widget/content/UniqueBugContent.java index 11a0ce707..00f9c0eb4 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/widget/content/UniqueBugContent.java +++ b/src/main/java/com/epam/ta/reportportal/entity/widget/content/UniqueBugContent.java @@ -26,7 +26,7 @@ import java.time.Instant; import java.util.List; import java.util.Set; -import javax.persistence.Convert; +import jakarta.persistence.Convert; /** * @author Ivan Budayeu diff --git a/src/main/java/com/epam/ta/reportportal/jooq/DefaultCatalog.java b/src/main/java/com/epam/ta/reportportal/jooq/DefaultCatalog.java index 4aa1da4ff..a9b238a03 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/DefaultCatalog.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/DefaultCatalog.java @@ -4,12 +4,10 @@ package com.epam.ta.reportportal.jooq; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Constants; import org.jooq.Schema; import org.jooq.impl.CatalogImpl; @@ -17,27 +15,20 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class DefaultCatalog extends CatalogImpl { - private static final long serialVersionUID = 312084026; + private static final long serialVersionUID = 1L; /** - * The reference instance of + * The reference instance of DEFAULT_CATALOG */ public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog(); /** * The schema public. */ - public final JPublic PUBLIC = com.epam.ta.reportportal.jooq.JPublic.PUBLIC; + public final JPublic PUBLIC = JPublic.PUBLIC; /** * No further instances allowed @@ -48,13 +39,16 @@ private DefaultCatalog() { @Override public final List getSchemas() { - List result = new ArrayList(); - result.addAll(getSchemas0()); - return result; + return Arrays.asList( + JPublic.PUBLIC + ); } - private final List getSchemas0() { - return Arrays.asList( - JPublic.PUBLIC); - } + /** + * A reference to the 3.19 minor release of the code generator. If this + * doesn't compile, it's because the runtime library uses an older minor + * release, namely: 3.19. You can turn off the generation of this reference + * by specifying /configuration/generator/generate/jooqVersionReference + */ + private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19; } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/Indexes.java b/src/main/java/com/epam/ta/reportportal/jooq/Indexes.java index 239e99ceb..47ca3d9fc 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/Indexes.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/Indexes.java @@ -5,341 +5,98 @@ import com.epam.ta.reportportal.jooq.tables.JActivity; -import com.epam.ta.reportportal.jooq.tables.JAnalyticsData; import com.epam.ta.reportportal.jooq.tables.JApiKeys; import com.epam.ta.reportportal.jooq.tables.JAttachment; -import com.epam.ta.reportportal.jooq.tables.JAttachmentDeletion; -import com.epam.ta.reportportal.jooq.tables.JAttribute; import com.epam.ta.reportportal.jooq.tables.JClusters; import com.epam.ta.reportportal.jooq.tables.JClustersTestItem; import com.epam.ta.reportportal.jooq.tables.JContentField; -import com.epam.ta.reportportal.jooq.tables.JDashboard; -import com.epam.ta.reportportal.jooq.tables.JDashboardWidget; -import com.epam.ta.reportportal.jooq.tables.JFilter; import com.epam.ta.reportportal.jooq.tables.JFilterCondition; import com.epam.ta.reportportal.jooq.tables.JFilterSort; import com.epam.ta.reportportal.jooq.tables.JIntegration; -import com.epam.ta.reportportal.jooq.tables.JIntegrationType; import com.epam.ta.reportportal.jooq.tables.JIssue; -import com.epam.ta.reportportal.jooq.tables.JIssueGroup; -import com.epam.ta.reportportal.jooq.tables.JIssueTicket; import com.epam.ta.reportportal.jooq.tables.JIssueType; -import com.epam.ta.reportportal.jooq.tables.JIssueTypeProject; import com.epam.ta.reportportal.jooq.tables.JItemAttribute; import com.epam.ta.reportportal.jooq.tables.JLaunch; import com.epam.ta.reportportal.jooq.tables.JLaunchAttributeRules; import com.epam.ta.reportportal.jooq.tables.JLaunchNames; -import com.epam.ta.reportportal.jooq.tables.JLaunchNumber; import com.epam.ta.reportportal.jooq.tables.JLog; -import com.epam.ta.reportportal.jooq.tables.JOauthRegistration; -import com.epam.ta.reportportal.jooq.tables.JOauthRegistrationRestriction; -import com.epam.ta.reportportal.jooq.tables.JOauthRegistrationScope; -import com.epam.ta.reportportal.jooq.tables.JOnboarding; import com.epam.ta.reportportal.jooq.tables.JOwnedEntity; import com.epam.ta.reportportal.jooq.tables.JParameter; -import com.epam.ta.reportportal.jooq.tables.JPatternTemplate; import com.epam.ta.reportportal.jooq.tables.JPatternTemplateTestItem; -import com.epam.ta.reportportal.jooq.tables.JProject; -import com.epam.ta.reportportal.jooq.tables.JProjectAttribute; -import com.epam.ta.reportportal.jooq.tables.JProjectUser; import com.epam.ta.reportportal.jooq.tables.JRecipients; -import com.epam.ta.reportportal.jooq.tables.JRestorePasswordBid; import com.epam.ta.reportportal.jooq.tables.JSenderCase; -import com.epam.ta.reportportal.jooq.tables.JServerSettings; -import com.epam.ta.reportportal.jooq.tables.JShedlock; import com.epam.ta.reportportal.jooq.tables.JStaleMaterializedView; import com.epam.ta.reportportal.jooq.tables.JStatistics; -import com.epam.ta.reportportal.jooq.tables.JStatisticsField; import com.epam.ta.reportportal.jooq.tables.JTestItem; -import com.epam.ta.reportportal.jooq.tables.JTestItemResults; import com.epam.ta.reportportal.jooq.tables.JTicket; -import com.epam.ta.reportportal.jooq.tables.JUserCreationBid; -import com.epam.ta.reportportal.jooq.tables.JUserPreference; -import com.epam.ta.reportportal.jooq.tables.JUsers; -import com.epam.ta.reportportal.jooq.tables.JWidget; -import com.epam.ta.reportportal.jooq.tables.JWidgetFilter; - -import javax.annotation.processing.Generated; import org.jooq.Index; import org.jooq.OrderField; +import org.jooq.impl.DSL; import org.jooq.impl.Internal; /** - * A class modelling indexes of tables of the public schema. + * A class modelling indexes of tables in public. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class Indexes { // ------------------------------------------------------------------------- // INDEX definitions // ------------------------------------------------------------------------- - public static final Index ACTIVITY_CREATED_AT_IDX = Indexes0.ACTIVITY_CREATED_AT_IDX; - public static final Index ACTIVITY_OBJECT_IDX = Indexes0.ACTIVITY_OBJECT_IDX; - public static final Index ACTIVITY_PK = Indexes0.ACTIVITY_PK; - public static final Index ACTIVITY_PROJECT_IDX = Indexes0.ACTIVITY_PROJECT_IDX; - public static final Index ANALYTICS_DATA_PKEY = Indexes0.ANALYTICS_DATA_PKEY; - public static final Index API_KEYS_PKEY = Indexes0.API_KEYS_PKEY; - public static final Index HASH_API_KEYS_IDX = Indexes0.HASH_API_KEYS_IDX; - public static final Index USERS_API_KEYS_UNIQUE = Indexes0.USERS_API_KEYS_UNIQUE; - public static final Index ATT_ITEM_IDX = Indexes0.ATT_ITEM_IDX; - public static final Index ATT_LAUNCH_IDX = Indexes0.ATT_LAUNCH_IDX; - public static final Index ATT_PROJECT_IDX = Indexes0.ATT_PROJECT_IDX; - public static final Index ATTACHMENT_PK = Indexes0.ATTACHMENT_PK; - public static final Index ATTACHMENT_PROJECT_ID_CREATION_TIME_IDX = Indexes0.ATTACHMENT_PROJECT_ID_CREATION_TIME_IDX; - public static final Index ATTACHMENT_DELETION_PKEY = Indexes0.ATTACHMENT_DELETION_PKEY; - public static final Index ATTRIBUTE_PK = Indexes0.ATTRIBUTE_PK; - public static final Index CLUSTER_INDEX_ID_IDX = Indexes0.CLUSTER_INDEX_ID_IDX; - public static final Index CLUSTER_LAUNCH_IDX = Indexes0.CLUSTER_LAUNCH_IDX; - public static final Index CLUSTER_PROJECT_IDX = Indexes0.CLUSTER_PROJECT_IDX; - public static final Index CLUSTERS_PK = Indexes0.CLUSTERS_PK; - public static final Index INDEX_ID_LAUNCH_ID_UNQ = Indexes0.INDEX_ID_LAUNCH_ID_UNQ; - public static final Index CLUSTER_ITEM_CLUSTER_IDX = Indexes0.CLUSTER_ITEM_CLUSTER_IDX; - public static final Index CLUSTER_ITEM_ITEM_IDX = Indexes0.CLUSTER_ITEM_ITEM_IDX; - public static final Index CLUSTER_ITEM_UNQ = Indexes0.CLUSTER_ITEM_UNQ; - public static final Index CONTENT_FIELD_IDX = Indexes0.CONTENT_FIELD_IDX; - public static final Index CONTENT_FIELD_WIDGET_IDX = Indexes0.CONTENT_FIELD_WIDGET_IDX; - public static final Index DASHBOARD_PKEY = Indexes0.DASHBOARD_PKEY; - public static final Index DASHBOARD_WIDGET_PK = Indexes0.DASHBOARD_WIDGET_PK; - public static final Index WIDGET_ON_DASHBOARD_UNQ = Indexes0.WIDGET_ON_DASHBOARD_UNQ; - public static final Index FILTER_PKEY = Indexes0.FILTER_PKEY; - public static final Index FILTER_COND_FILTER_IDX = Indexes0.FILTER_COND_FILTER_IDX; - public static final Index FILTER_CONDITION_PK = Indexes0.FILTER_CONDITION_PK; - public static final Index FILTER_SORT_FILTER_IDX = Indexes0.FILTER_SORT_FILTER_IDX; - public static final Index FILTER_SORT_PK = Indexes0.FILTER_SORT_PK; - public static final Index INTEGR_PROJECT_IDX = Indexes0.INTEGR_PROJECT_IDX; - public static final Index INTEGRATION_PK = Indexes0.INTEGRATION_PK; - public static final Index UNIQUE_GLOBAL_INTEGRATION_NAME = Indexes0.UNIQUE_GLOBAL_INTEGRATION_NAME; - public static final Index UNIQUE_PROJECT_INTEGRATION_NAME = Indexes0.UNIQUE_PROJECT_INTEGRATION_NAME; - public static final Index INTEGRATION_TYPE_NAME_KEY = Indexes0.INTEGRATION_TYPE_NAME_KEY; - public static final Index INTEGRATION_TYPE_PK = Indexes0.INTEGRATION_TYPE_PK; - public static final Index ISSUE_IT_IDX = Indexes0.ISSUE_IT_IDX; - public static final Index ISSUE_PK = Indexes0.ISSUE_PK; - public static final Index ISSUE_GROUP_PK = Indexes0.ISSUE_GROUP_PK; - public static final Index ISSUE_TICKET_PK = Indexes0.ISSUE_TICKET_PK; - public static final Index ISSUE_TYPE_GROUP_IDX = Indexes0.ISSUE_TYPE_GROUP_IDX; - public static final Index ISSUE_TYPE_LOCATOR_KEY = Indexes0.ISSUE_TYPE_LOCATOR_KEY; - public static final Index ISSUE_TYPE_PK = Indexes0.ISSUE_TYPE_PK; - public static final Index ISSUE_TYPE_PROJECT_PK = Indexes0.ISSUE_TYPE_PROJECT_PK; - public static final Index ITEM_ATTR_LAUNCH_IDX = Indexes0.ITEM_ATTR_LAUNCH_IDX; - public static final Index ITEM_ATTR_TI_IDX = Indexes0.ITEM_ATTR_TI_IDX; - public static final Index ITEM_ATTRIBUTE_PK = Indexes0.ITEM_ATTRIBUTE_PK; - public static final Index LAUNCH_PK = Indexes0.LAUNCH_PK; - public static final Index LAUNCH_PROJECT_START_TIME_IDX = Indexes0.LAUNCH_PROJECT_START_TIME_IDX; - public static final Index LAUNCH_USER_IDX = Indexes0.LAUNCH_USER_IDX; - public static final Index LAUNCH_UUID_KEY = Indexes0.LAUNCH_UUID_KEY; - public static final Index UNQ_NAME_NUMBER = Indexes0.UNQ_NAME_NUMBER; - public static final Index L_ATTR_RL_SEND_CASE_IDX = Indexes0.L_ATTR_RL_SEND_CASE_IDX; - public static final Index LAUNCH_ATTRIBUTE_RULES_PK = Indexes0.LAUNCH_ATTRIBUTE_RULES_PK; - public static final Index LN_SEND_CASE_IDX = Indexes0.LN_SEND_CASE_IDX; - public static final Index LAUNCH_NUMBER_PK = Indexes0.LAUNCH_NUMBER_PK; - public static final Index UNQ_PROJECT_NAME = Indexes0.UNQ_PROJECT_NAME; - public static final Index LOG_ATTACH_ID_IDX = Indexes0.LOG_ATTACH_ID_IDX; - public static final Index LOG_CLUSTER_IDX = Indexes0.LOG_CLUSTER_IDX; - public static final Index LOG_LAUNCH_ID_IDX = Indexes0.LOG_LAUNCH_ID_IDX; - public static final Index LOG_PK = Indexes0.LOG_PK; - public static final Index LOG_PROJECT_ID_LOG_TIME_IDX = Indexes0.LOG_PROJECT_ID_LOG_TIME_IDX; - public static final Index LOG_PROJECT_IDX = Indexes0.LOG_PROJECT_IDX; - public static final Index LOG_TI_IDX = Indexes0.LOG_TI_IDX; - public static final Index OAUTH_REGISTRATION_CLIENT_ID_KEY = Indexes0.OAUTH_REGISTRATION_CLIENT_ID_KEY; - public static final Index OAUTH_REGISTRATION_PKEY = Indexes0.OAUTH_REGISTRATION_PKEY; - public static final Index OAUTH_REGISTRATION_RESTRICTION_PK = Indexes0.OAUTH_REGISTRATION_RESTRICTION_PK; - public static final Index OAUTH_REGISTRATION_RESTRICTION_UNIQUE = Indexes0.OAUTH_REGISTRATION_RESTRICTION_UNIQUE; - public static final Index OAUTH_REGISTRATION_SCOPE_PK = Indexes0.OAUTH_REGISTRATION_SCOPE_PK; - public static final Index OAUTH_REGISTRATION_SCOPE_UNIQUE = Indexes0.OAUTH_REGISTRATION_SCOPE_UNIQUE; - public static final Index ONBOARDING_PK = Indexes0.ONBOARDING_PK; - public static final Index SHAREABLE_PK = Indexes0.SHAREABLE_PK; - public static final Index SHARED_ENTITY_OWNERX = Indexes0.SHARED_ENTITY_OWNERX; - public static final Index SHARED_ENTITY_PROJECT_IDX = Indexes0.SHARED_ENTITY_PROJECT_IDX; - public static final Index PARAMETER_TI_IDX = Indexes0.PARAMETER_TI_IDX; - public static final Index PATTERN_TEMPLATE_PK = Indexes0.PATTERN_TEMPLATE_PK; - public static final Index UNQ_NAME_PROJECTID = Indexes0.UNQ_NAME_PROJECTID; - public static final Index PATTERN_ITEM_ITEM_ID_IDX = Indexes0.PATTERN_ITEM_ITEM_ID_IDX; - public static final Index PATTERN_ITEM_UNQ = Indexes0.PATTERN_ITEM_UNQ; - public static final Index PROJECT_NAME_KEY = Indexes0.PROJECT_NAME_KEY; - public static final Index PROJECT_PK = Indexes0.PROJECT_PK; - public static final Index UNIQUE_ATTRIBUTE_PER_PROJECT = Indexes0.UNIQUE_ATTRIBUTE_PER_PROJECT; - public static final Index USERS_PROJECT_PK = Indexes0.USERS_PROJECT_PK; - public static final Index RCPNT_SEND_CASE_IDX = Indexes0.RCPNT_SEND_CASE_IDX; - public static final Index RESTORE_PASSWORD_BID_EMAIL_KEY = Indexes0.RESTORE_PASSWORD_BID_EMAIL_KEY; - public static final Index RESTORE_PASSWORD_BID_PK = Indexes0.RESTORE_PASSWORD_BID_PK; - public static final Index SENDER_CASE_PK = Indexes0.SENDER_CASE_PK; - public static final Index SENDER_CASE_PROJECT_IDX = Indexes0.SENDER_CASE_PROJECT_IDX; - public static final Index UNIQUE_RULE_NAME_PER_PROJECT_RULE_TYPE = Indexes0.UNIQUE_RULE_NAME_PER_PROJECT_RULE_TYPE; - public static final Index SERVER_SETTINGS_ID = Indexes0.SERVER_SETTINGS_ID; - public static final Index SERVER_SETTINGS_KEY_KEY = Indexes0.SERVER_SETTINGS_KEY_KEY; - public static final Index SHEDLOCK_PKEY = Indexes0.SHEDLOCK_PKEY; - public static final Index STALE_MATERIALIZED_VIEW_NAME_KEY = Indexes0.STALE_MATERIALIZED_VIEW_NAME_KEY; - public static final Index STALE_MATERIALIZED_VIEW_PKEY = Indexes0.STALE_MATERIALIZED_VIEW_PKEY; - public static final Index STALE_MV_CREATION_DATE_IDX = Indexes0.STALE_MV_CREATION_DATE_IDX; - public static final Index STATISTICS_LAUNCH_IDX = Indexes0.STATISTICS_LAUNCH_IDX; - public static final Index STATISTICS_PK = Indexes0.STATISTICS_PK; - public static final Index STATISTICS_TI_IDX = Indexes0.STATISTICS_TI_IDX; - public static final Index UNIQUE_STATS_ITEM = Indexes0.UNIQUE_STATS_ITEM; - public static final Index UNIQUE_STATS_LAUNCH = Indexes0.UNIQUE_STATS_LAUNCH; - public static final Index STATISTICS_FIELD_NAME_KEY = Indexes0.STATISTICS_FIELD_NAME_KEY; - public static final Index STATISTICS_FIELD_PK = Indexes0.STATISTICS_FIELD_PK; - public static final Index ITEM_TEST_CASE_ID_LAUNCH_ID_IDX = Indexes0.ITEM_TEST_CASE_ID_LAUNCH_ID_IDX; - public static final Index PATH_GIST_IDX = Indexes0.PATH_GIST_IDX; - public static final Index TEST_CASE_HASH_LAUNCH_ID_IDX = Indexes0.TEST_CASE_HASH_LAUNCH_ID_IDX; - public static final Index TEST_ITEM_PK = Indexes0.TEST_ITEM_PK; - public static final Index TEST_ITEM_UNIQUE_ID_LAUNCH_ID_IDX = Indexes0.TEST_ITEM_UNIQUE_ID_LAUNCH_ID_IDX; - public static final Index TEST_ITEM_UUID_KEY = Indexes0.TEST_ITEM_UUID_KEY; - public static final Index TI_LAUNCH_IDX = Indexes0.TI_LAUNCH_IDX; - public static final Index TI_PARENT_IDX = Indexes0.TI_PARENT_IDX; - public static final Index TI_RETRY_OF_IDX = Indexes0.TI_RETRY_OF_IDX; - public static final Index TEST_ITEM_RESULTS_PK = Indexes0.TEST_ITEM_RESULTS_PK; - public static final Index TICKET_ID_IDX = Indexes0.TICKET_ID_IDX; - public static final Index TICKET_PK = Indexes0.TICKET_PK; - public static final Index TICKET_SUBMITTER_IDX = Indexes0.TICKET_SUBMITTER_IDX; - public static final Index USER_CREATION_BID_PK = Indexes0.USER_CREATION_BID_PK; - public static final Index USER_PREFERENCE_PK = Indexes0.USER_PREFERENCE_PK; - public static final Index USER_PREFERENCE_UQ = Indexes0.USER_PREFERENCE_UQ; - public static final Index USERS_EMAIL_KEY = Indexes0.USERS_EMAIL_KEY; - public static final Index USERS_LOGIN_KEY = Indexes0.USERS_LOGIN_KEY; - public static final Index USERS_PK = Indexes0.USERS_PK; - public static final Index WIDGET_PKEY = Indexes0.WIDGET_PKEY; - public static final Index WIDGET_FILTER_PK = Indexes0.WIDGET_FILTER_PK; - - // ------------------------------------------------------------------------- - // [#1459] distribute members to avoid static initialisers > 64kb - // ------------------------------------------------------------------------- - - private static class Indexes0 { - public static Index ACTIVITY_CREATED_AT_IDX = Internal.createIndex("activity_created_at_idx", JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.CREATED_AT }, false); - public static Index ACTIVITY_OBJECT_IDX = Internal.createIndex("activity_object_idx", JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.OBJECT_ID }, false); - public static Index ACTIVITY_PK = Internal.createIndex("activity_pk", JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.ID }, true); - public static Index ACTIVITY_PROJECT_IDX = Internal.createIndex("activity_project_idx", JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.PROJECT_ID }, false); - public static Index ANALYTICS_DATA_PKEY = Internal.createIndex("analytics_data_pkey", JAnalyticsData.ANALYTICS_DATA, new OrderField[] { JAnalyticsData.ANALYTICS_DATA.ID }, true); - public static Index API_KEYS_PKEY = Internal.createIndex("api_keys_pkey", JApiKeys.API_KEYS, new OrderField[] { JApiKeys.API_KEYS.ID }, true); - public static Index HASH_API_KEYS_IDX = Internal.createIndex("hash_api_keys_idx", JApiKeys.API_KEYS, new OrderField[] { JApiKeys.API_KEYS.HASH }, false); - public static Index USERS_API_KEYS_UNIQUE = Internal.createIndex("users_api_keys_unique", JApiKeys.API_KEYS, new OrderField[] { JApiKeys.API_KEYS.NAME, JApiKeys.API_KEYS.USER_ID }, true); - public static Index ATT_ITEM_IDX = Internal.createIndex("att_item_idx", JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.ITEM_ID }, false); - public static Index ATT_LAUNCH_IDX = Internal.createIndex("att_launch_idx", JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.LAUNCH_ID }, false); - public static Index ATT_PROJECT_IDX = Internal.createIndex("att_project_idx", JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.PROJECT_ID }, false); - public static Index ATTACHMENT_PK = Internal.createIndex("attachment_pk", JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.ID }, true); - public static Index ATTACHMENT_PROJECT_ID_CREATION_TIME_IDX = Internal.createIndex("attachment_project_id_creation_time_idx", JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.PROJECT_ID, JAttachment.ATTACHMENT.CREATION_DATE }, false); - public static Index ATTACHMENT_DELETION_PKEY = Internal.createIndex("attachment_deletion_pkey", JAttachmentDeletion.ATTACHMENT_DELETION, new OrderField[] { JAttachmentDeletion.ATTACHMENT_DELETION.ID }, true); - public static Index ATTRIBUTE_PK = Internal.createIndex("attribute_pk", JAttribute.ATTRIBUTE, new OrderField[] { JAttribute.ATTRIBUTE.ID }, true); - public static Index CLUSTER_INDEX_ID_IDX = Internal.createIndex("cluster_index_id_idx", JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.INDEX_ID }, false); - public static Index CLUSTER_LAUNCH_IDX = Internal.createIndex("cluster_launch_idx", JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.LAUNCH_ID }, false); - public static Index CLUSTER_PROJECT_IDX = Internal.createIndex("cluster_project_idx", JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.PROJECT_ID }, false); - public static Index CLUSTERS_PK = Internal.createIndex("clusters_pk", JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.ID }, true); - public static Index INDEX_ID_LAUNCH_ID_UNQ = Internal.createIndex("index_id_launch_id_unq", JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.INDEX_ID, JClusters.CLUSTERS.LAUNCH_ID }, true); - public static Index CLUSTER_ITEM_CLUSTER_IDX = Internal.createIndex("cluster_item_cluster_idx", JClustersTestItem.CLUSTERS_TEST_ITEM, new OrderField[] { JClustersTestItem.CLUSTERS_TEST_ITEM.CLUSTER_ID }, false); - public static Index CLUSTER_ITEM_ITEM_IDX = Internal.createIndex("cluster_item_item_idx", JClustersTestItem.CLUSTERS_TEST_ITEM, new OrderField[] { JClustersTestItem.CLUSTERS_TEST_ITEM.ITEM_ID }, false); - public static Index CLUSTER_ITEM_UNQ = Internal.createIndex("cluster_item_unq", JClustersTestItem.CLUSTERS_TEST_ITEM, new OrderField[] { JClustersTestItem.CLUSTERS_TEST_ITEM.CLUSTER_ID, JClustersTestItem.CLUSTERS_TEST_ITEM.ITEM_ID }, true); - public static Index CONTENT_FIELD_IDX = Internal.createIndex("content_field_idx", JContentField.CONTENT_FIELD, new OrderField[] { JContentField.CONTENT_FIELD.FIELD }, false); - public static Index CONTENT_FIELD_WIDGET_IDX = Internal.createIndex("content_field_widget_idx", JContentField.CONTENT_FIELD, new OrderField[] { JContentField.CONTENT_FIELD.ID }, false); - public static Index DASHBOARD_PKEY = Internal.createIndex("dashboard_pkey", JDashboard.DASHBOARD, new OrderField[] { JDashboard.DASHBOARD.ID }, true); - public static Index DASHBOARD_WIDGET_PK = Internal.createIndex("dashboard_widget_pk", JDashboardWidget.DASHBOARD_WIDGET, new OrderField[] { JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_ID }, true); - public static Index WIDGET_ON_DASHBOARD_UNQ = Internal.createIndex("widget_on_dashboard_unq", JDashboardWidget.DASHBOARD_WIDGET, new OrderField[] { JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_NAME, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_OWNER }, true); - public static Index FILTER_PKEY = Internal.createIndex("filter_pkey", JFilter.FILTER, new OrderField[] { JFilter.FILTER.ID }, true); - public static Index FILTER_COND_FILTER_IDX = Internal.createIndex("filter_cond_filter_idx", JFilterCondition.FILTER_CONDITION, new OrderField[] { JFilterCondition.FILTER_CONDITION.FILTER_ID }, false); - public static Index FILTER_CONDITION_PK = Internal.createIndex("filter_condition_pk", JFilterCondition.FILTER_CONDITION, new OrderField[] { JFilterCondition.FILTER_CONDITION.ID }, true); - public static Index FILTER_SORT_FILTER_IDX = Internal.createIndex("filter_sort_filter_idx", JFilterSort.FILTER_SORT, new OrderField[] { JFilterSort.FILTER_SORT.FILTER_ID }, false); - public static Index FILTER_SORT_PK = Internal.createIndex("filter_sort_pk", JFilterSort.FILTER_SORT, new OrderField[] { JFilterSort.FILTER_SORT.ID }, true); - public static Index INTEGR_PROJECT_IDX = Internal.createIndex("integr_project_idx", JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.PROJECT_ID }, false); - public static Index INTEGRATION_PK = Internal.createIndex("integration_pk", JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.ID }, true); - public static Index UNIQUE_GLOBAL_INTEGRATION_NAME = Internal.createIndex("unique_global_integration_name", JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.NAME, JIntegration.INTEGRATION.TYPE }, true); - public static Index UNIQUE_PROJECT_INTEGRATION_NAME = Internal.createIndex("unique_project_integration_name", JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.NAME, JIntegration.INTEGRATION.TYPE, JIntegration.INTEGRATION.PROJECT_ID }, true); - public static Index INTEGRATION_TYPE_NAME_KEY = Internal.createIndex("integration_type_name_key", JIntegrationType.INTEGRATION_TYPE, new OrderField[] { JIntegrationType.INTEGRATION_TYPE.NAME }, true); - public static Index INTEGRATION_TYPE_PK = Internal.createIndex("integration_type_pk", JIntegrationType.INTEGRATION_TYPE, new OrderField[] { JIntegrationType.INTEGRATION_TYPE.ID }, true); - public static Index ISSUE_IT_IDX = Internal.createIndex("issue_it_idx", JIssue.ISSUE, new OrderField[] { JIssue.ISSUE.ISSUE_TYPE }, false); - public static Index ISSUE_PK = Internal.createIndex("issue_pk", JIssue.ISSUE, new OrderField[] { JIssue.ISSUE.ISSUE_ID }, true); - public static Index ISSUE_GROUP_PK = Internal.createIndex("issue_group_pk", JIssueGroup.ISSUE_GROUP, new OrderField[] { JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_ID }, true); - public static Index ISSUE_TICKET_PK = Internal.createIndex("issue_ticket_pk", JIssueTicket.ISSUE_TICKET, new OrderField[] { JIssueTicket.ISSUE_TICKET.ISSUE_ID, JIssueTicket.ISSUE_TICKET.TICKET_ID }, true); - public static Index ISSUE_TYPE_GROUP_IDX = Internal.createIndex("issue_type_group_idx", JIssueType.ISSUE_TYPE, new OrderField[] { JIssueType.ISSUE_TYPE.ISSUE_GROUP_ID }, false); - public static Index ISSUE_TYPE_LOCATOR_KEY = Internal.createIndex("issue_type_locator_key", JIssueType.ISSUE_TYPE, new OrderField[] { JIssueType.ISSUE_TYPE.LOCATOR }, true); - public static Index ISSUE_TYPE_PK = Internal.createIndex("issue_type_pk", JIssueType.ISSUE_TYPE, new OrderField[] { JIssueType.ISSUE_TYPE.ID }, true); - public static Index ISSUE_TYPE_PROJECT_PK = Internal.createIndex("issue_type_project_pk", JIssueTypeProject.ISSUE_TYPE_PROJECT, new OrderField[] { JIssueTypeProject.ISSUE_TYPE_PROJECT.PROJECT_ID, JIssueTypeProject.ISSUE_TYPE_PROJECT.ISSUE_TYPE_ID }, true); - public static Index ITEM_ATTR_LAUNCH_IDX = Internal.createIndex("item_attr_launch_idx", JItemAttribute.ITEM_ATTRIBUTE, new OrderField[] { JItemAttribute.ITEM_ATTRIBUTE.LAUNCH_ID }, false); - public static Index ITEM_ATTR_TI_IDX = Internal.createIndex("item_attr_ti_idx", JItemAttribute.ITEM_ATTRIBUTE, new OrderField[] { JItemAttribute.ITEM_ATTRIBUTE.ITEM_ID }, false); - public static Index ITEM_ATTRIBUTE_PK = Internal.createIndex("item_attribute_pk", JItemAttribute.ITEM_ATTRIBUTE, new OrderField[] { JItemAttribute.ITEM_ATTRIBUTE.ID }, true); - public static Index LAUNCH_PK = Internal.createIndex("launch_pk", JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.ID }, true); - public static Index LAUNCH_PROJECT_START_TIME_IDX = Internal.createIndex("launch_project_start_time_idx", JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.PROJECT_ID, JLaunch.LAUNCH.START_TIME }, false); - public static Index LAUNCH_USER_IDX = Internal.createIndex("launch_user_idx", JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.USER_ID }, false); - public static Index LAUNCH_UUID_KEY = Internal.createIndex("launch_uuid_key", JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.UUID }, true); - public static Index UNQ_NAME_NUMBER = Internal.createIndex("unq_name_number", JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.NAME, JLaunch.LAUNCH.NUMBER, JLaunch.LAUNCH.PROJECT_ID }, true); - public static Index L_ATTR_RL_SEND_CASE_IDX = Internal.createIndex("l_attr_rl_send_case_idx", JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, new OrderField[] { JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.SENDER_CASE_ID }, false); - public static Index LAUNCH_ATTRIBUTE_RULES_PK = Internal.createIndex("launch_attribute_rules_pk", JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, new OrderField[] { JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.ID }, true); - public static Index LN_SEND_CASE_IDX = Internal.createIndex("ln_send_case_idx", JLaunchNames.LAUNCH_NAMES, new OrderField[] { JLaunchNames.LAUNCH_NAMES.SENDER_CASE_ID }, false); - public static Index LAUNCH_NUMBER_PK = Internal.createIndex("launch_number_pk", JLaunchNumber.LAUNCH_NUMBER, new OrderField[] { JLaunchNumber.LAUNCH_NUMBER.ID }, true); - public static Index UNQ_PROJECT_NAME = Internal.createIndex("unq_project_name", JLaunchNumber.LAUNCH_NUMBER, new OrderField[] { JLaunchNumber.LAUNCH_NUMBER.PROJECT_ID, JLaunchNumber.LAUNCH_NUMBER.LAUNCH_NAME }, true); - public static Index LOG_ATTACH_ID_IDX = Internal.createIndex("log_attach_id_idx", JLog.LOG, new OrderField[] { JLog.LOG.ATTACHMENT_ID }, false); - public static Index LOG_CLUSTER_IDX = Internal.createIndex("log_cluster_idx", JLog.LOG, new OrderField[] { JLog.LOG.CLUSTER_ID }, false); - public static Index LOG_LAUNCH_ID_IDX = Internal.createIndex("log_launch_id_idx", JLog.LOG, new OrderField[] { JLog.LOG.LAUNCH_ID }, false); - public static Index LOG_PK = Internal.createIndex("log_pk", JLog.LOG, new OrderField[] { JLog.LOG.ID }, true); - public static Index LOG_PROJECT_ID_LOG_TIME_IDX = Internal.createIndex("log_project_id_log_time_idx", JLog.LOG, new OrderField[] { JLog.LOG.PROJECT_ID, JLog.LOG.LOG_TIME }, false); - public static Index LOG_PROJECT_IDX = Internal.createIndex("log_project_idx", JLog.LOG, new OrderField[] { JLog.LOG.PROJECT_ID }, false); - public static Index LOG_TI_IDX = Internal.createIndex("log_ti_idx", JLog.LOG, new OrderField[] { JLog.LOG.ITEM_ID }, false); - public static Index OAUTH_REGISTRATION_CLIENT_ID_KEY = Internal.createIndex("oauth_registration_client_id_key", JOauthRegistration.OAUTH_REGISTRATION, new OrderField[] { JOauthRegistration.OAUTH_REGISTRATION.CLIENT_ID }, true); - public static Index OAUTH_REGISTRATION_PKEY = Internal.createIndex("oauth_registration_pkey", JOauthRegistration.OAUTH_REGISTRATION, new OrderField[] { JOauthRegistration.OAUTH_REGISTRATION.ID }, true); - public static Index OAUTH_REGISTRATION_RESTRICTION_PK = Internal.createIndex("oauth_registration_restriction_pk", JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, new OrderField[] { JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.ID }, true); - public static Index OAUTH_REGISTRATION_RESTRICTION_UNIQUE = Internal.createIndex("oauth_registration_restriction_unique", JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, new OrderField[] { JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.TYPE, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.VALUE, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.OAUTH_REGISTRATION_FK }, true); - public static Index OAUTH_REGISTRATION_SCOPE_PK = Internal.createIndex("oauth_registration_scope_pk", JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, new OrderField[] { JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.ID }, true); - public static Index OAUTH_REGISTRATION_SCOPE_UNIQUE = Internal.createIndex("oauth_registration_scope_unique", JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, new OrderField[] { JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.SCOPE, JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.OAUTH_REGISTRATION_FK }, true); - public static Index ONBOARDING_PK = Internal.createIndex("onboarding_pk", JOnboarding.ONBOARDING, new OrderField[] { JOnboarding.ONBOARDING.ID }, true); - public static Index SHAREABLE_PK = Internal.createIndex("shareable_pk", JOwnedEntity.OWNED_ENTITY, new OrderField[] { JOwnedEntity.OWNED_ENTITY.ID }, true); - public static Index SHARED_ENTITY_OWNERX = Internal.createIndex("shared_entity_ownerx", JOwnedEntity.OWNED_ENTITY, new OrderField[] { JOwnedEntity.OWNED_ENTITY.OWNER }, false); - public static Index SHARED_ENTITY_PROJECT_IDX = Internal.createIndex("shared_entity_project_idx", JOwnedEntity.OWNED_ENTITY, new OrderField[] { JOwnedEntity.OWNED_ENTITY.PROJECT_ID }, false); - public static Index PARAMETER_TI_IDX = Internal.createIndex("parameter_ti_idx", JParameter.PARAMETER, new OrderField[] { JParameter.PARAMETER.ITEM_ID }, false); - public static Index PATTERN_TEMPLATE_PK = Internal.createIndex("pattern_template_pk", JPatternTemplate.PATTERN_TEMPLATE, new OrderField[] { JPatternTemplate.PATTERN_TEMPLATE.ID }, true); - public static Index UNQ_NAME_PROJECTID = Internal.createIndex("unq_name_projectid", JPatternTemplate.PATTERN_TEMPLATE, new OrderField[] { JPatternTemplate.PATTERN_TEMPLATE.NAME, JPatternTemplate.PATTERN_TEMPLATE.PROJECT_ID }, true); - public static Index PATTERN_ITEM_ITEM_ID_IDX = Internal.createIndex("pattern_item_item_id_idx", JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, new OrderField[] { JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID }, false); - public static Index PATTERN_ITEM_UNQ = Internal.createIndex("pattern_item_unq", JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, new OrderField[] { JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.PATTERN_ID, JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID }, true); - public static Index PROJECT_NAME_KEY = Internal.createIndex("project_name_key", JProject.PROJECT, new OrderField[] { JProject.PROJECT.NAME }, true); - public static Index PROJECT_PK = Internal.createIndex("project_pk", JProject.PROJECT, new OrderField[] { JProject.PROJECT.ID }, true); - public static Index UNIQUE_ATTRIBUTE_PER_PROJECT = Internal.createIndex("unique_attribute_per_project", JProjectAttribute.PROJECT_ATTRIBUTE, new OrderField[] { JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID, JProjectAttribute.PROJECT_ATTRIBUTE.PROJECT_ID }, true); - public static Index USERS_PROJECT_PK = Internal.createIndex("users_project_pk", JProjectUser.PROJECT_USER, new OrderField[] { JProjectUser.PROJECT_USER.USER_ID, JProjectUser.PROJECT_USER.PROJECT_ID }, true); - public static Index RCPNT_SEND_CASE_IDX = Internal.createIndex("rcpnt_send_case_idx", JRecipients.RECIPIENTS, new OrderField[] { JRecipients.RECIPIENTS.SENDER_CASE_ID }, false); - public static Index RESTORE_PASSWORD_BID_EMAIL_KEY = Internal.createIndex("restore_password_bid_email_key", JRestorePasswordBid.RESTORE_PASSWORD_BID, new OrderField[] { JRestorePasswordBid.RESTORE_PASSWORD_BID.EMAIL }, true); - public static Index RESTORE_PASSWORD_BID_PK = Internal.createIndex("restore_password_bid_pk", JRestorePasswordBid.RESTORE_PASSWORD_BID, new OrderField[] { JRestorePasswordBid.RESTORE_PASSWORD_BID.UUID }, true); - public static Index SENDER_CASE_PK = Internal.createIndex("sender_case_pk", JSenderCase.SENDER_CASE, new OrderField[] { JSenderCase.SENDER_CASE.ID }, true); - public static Index SENDER_CASE_PROJECT_IDX = Internal.createIndex("sender_case_project_idx", JSenderCase.SENDER_CASE, new OrderField[] { JSenderCase.SENDER_CASE.PROJECT_ID }, false); - public static Index UNIQUE_RULE_NAME_PER_PROJECT_RULE_TYPE = Internal.createIndex("unique_rule_name_per_project_rule_type", JSenderCase.SENDER_CASE, new OrderField[] { JSenderCase.SENDER_CASE.RULE_NAME, JSenderCase.SENDER_CASE.PROJECT_ID, JSenderCase.SENDER_CASE.RULE_TYPE }, true); - public static Index SERVER_SETTINGS_ID = Internal.createIndex("server_settings_id", JServerSettings.SERVER_SETTINGS, new OrderField[] { JServerSettings.SERVER_SETTINGS.ID }, true); - public static Index SERVER_SETTINGS_KEY_KEY = Internal.createIndex("server_settings_key_key", JServerSettings.SERVER_SETTINGS, new OrderField[] { JServerSettings.SERVER_SETTINGS.KEY }, true); - public static Index SHEDLOCK_PKEY = Internal.createIndex("shedlock_pkey", JShedlock.SHEDLOCK, new OrderField[] { JShedlock.SHEDLOCK.NAME }, true); - public static Index STALE_MATERIALIZED_VIEW_NAME_KEY = Internal.createIndex("stale_materialized_view_name_key", JStaleMaterializedView.STALE_MATERIALIZED_VIEW, new OrderField[] { JStaleMaterializedView.STALE_MATERIALIZED_VIEW.NAME }, true); - public static Index STALE_MATERIALIZED_VIEW_PKEY = Internal.createIndex("stale_materialized_view_pkey", JStaleMaterializedView.STALE_MATERIALIZED_VIEW, new OrderField[] { JStaleMaterializedView.STALE_MATERIALIZED_VIEW.ID }, true); - public static Index STALE_MV_CREATION_DATE_IDX = Internal.createIndex("stale_mv_creation_date_idx", JStaleMaterializedView.STALE_MATERIALIZED_VIEW, new OrderField[] { JStaleMaterializedView.STALE_MATERIALIZED_VIEW.CREATION_DATE }, false); - public static Index STATISTICS_LAUNCH_IDX = Internal.createIndex("statistics_launch_idx", JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.LAUNCH_ID }, false); - public static Index STATISTICS_PK = Internal.createIndex("statistics_pk", JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.S_ID }, true); - public static Index STATISTICS_TI_IDX = Internal.createIndex("statistics_ti_idx", JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.ITEM_ID }, false); - public static Index UNIQUE_STATS_ITEM = Internal.createIndex("unique_stats_item", JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.STATISTICS_FIELD_ID, JStatistics.STATISTICS.ITEM_ID }, true); - public static Index UNIQUE_STATS_LAUNCH = Internal.createIndex("unique_stats_launch", JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.STATISTICS_FIELD_ID, JStatistics.STATISTICS.LAUNCH_ID }, true); - public static Index STATISTICS_FIELD_NAME_KEY = Internal.createIndex("statistics_field_name_key", JStatisticsField.STATISTICS_FIELD, new OrderField[] { JStatisticsField.STATISTICS_FIELD.NAME }, true); - public static Index STATISTICS_FIELD_PK = Internal.createIndex("statistics_field_pk", JStatisticsField.STATISTICS_FIELD, new OrderField[] { JStatisticsField.STATISTICS_FIELD.SF_ID }, true); - public static Index ITEM_TEST_CASE_ID_LAUNCH_ID_IDX = Internal.createIndex("item_test_case_id_launch_id_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.TEST_CASE_ID, JTestItem.TEST_ITEM.LAUNCH_ID }, false); - public static Index PATH_GIST_IDX = Internal.createIndex("path_gist_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.PATH }, false); - public static Index TEST_CASE_HASH_LAUNCH_ID_IDX = Internal.createIndex("test_case_hash_launch_id_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.TEST_CASE_HASH, JTestItem.TEST_ITEM.LAUNCH_ID }, false); - public static Index TEST_ITEM_PK = Internal.createIndex("test_item_pk", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); - public static Index TEST_ITEM_UNIQUE_ID_LAUNCH_ID_IDX = Internal.createIndex("test_item_unique_id_launch_id_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.UNIQUE_ID, JTestItem.TEST_ITEM.LAUNCH_ID }, false); - public static Index TEST_ITEM_UUID_KEY = Internal.createIndex("test_item_uuid_key", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.UUID }, true); - public static Index TI_LAUNCH_IDX = Internal.createIndex("ti_launch_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.LAUNCH_ID }, false); - public static Index TI_PARENT_IDX = Internal.createIndex("ti_parent_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.PARENT_ID }, false); - public static Index TI_RETRY_OF_IDX = Internal.createIndex("ti_retry_of_idx", JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.RETRY_OF }, false); - public static Index TEST_ITEM_RESULTS_PK = Internal.createIndex("test_item_results_pk", JTestItemResults.TEST_ITEM_RESULTS, new OrderField[] { JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID }, true); - public static Index TICKET_ID_IDX = Internal.createIndex("ticket_id_idx", JTicket.TICKET, new OrderField[] { JTicket.TICKET.TICKET_ID }, false); - public static Index TICKET_PK = Internal.createIndex("ticket_pk", JTicket.TICKET, new OrderField[] { JTicket.TICKET.ID }, true); - public static Index TICKET_SUBMITTER_IDX = Internal.createIndex("ticket_submitter_idx", JTicket.TICKET, new OrderField[] { JTicket.TICKET.SUBMITTER }, false); - public static Index USER_CREATION_BID_PK = Internal.createIndex("user_creation_bid_pk", JUserCreationBid.USER_CREATION_BID, new OrderField[] { JUserCreationBid.USER_CREATION_BID.UUID }, true); - public static Index USER_PREFERENCE_PK = Internal.createIndex("user_preference_pk", JUserPreference.USER_PREFERENCE, new OrderField[] { JUserPreference.USER_PREFERENCE.ID }, true); - public static Index USER_PREFERENCE_UQ = Internal.createIndex("user_preference_uq", JUserPreference.USER_PREFERENCE, new OrderField[] { JUserPreference.USER_PREFERENCE.PROJECT_ID, JUserPreference.USER_PREFERENCE.USER_ID, JUserPreference.USER_PREFERENCE.FILTER_ID }, true); - public static Index USERS_EMAIL_KEY = Internal.createIndex("users_email_key", JUsers.USERS, new OrderField[] { JUsers.USERS.EMAIL }, true); - public static Index USERS_LOGIN_KEY = Internal.createIndex("users_login_key", JUsers.USERS, new OrderField[] { JUsers.USERS.LOGIN }, true); - public static Index USERS_PK = Internal.createIndex("users_pk", JUsers.USERS, new OrderField[] { JUsers.USERS.ID }, true); - public static Index WIDGET_PKEY = Internal.createIndex("widget_pkey", JWidget.WIDGET, new OrderField[] { JWidget.WIDGET.ID }, true); - public static Index WIDGET_FILTER_PK = Internal.createIndex("widget_filter_pk", JWidgetFilter.WIDGET_FILTER, new OrderField[] { JWidgetFilter.WIDGET_FILTER.WIDGET_ID, JWidgetFilter.WIDGET_FILTER.FILTER_ID }, true); - } + public static final Index ACTIVITY_CREATED_AT_IDX = Internal.createIndex(DSL.name("activity_created_at_idx"), JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.CREATED_AT }, false); + public static final Index ACTIVITY_OBJECT_IDX = Internal.createIndex(DSL.name("activity_object_idx"), JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.OBJECT_ID }, false); + public static final Index ACTIVITY_PROJECT_IDX = Internal.createIndex(DSL.name("activity_project_idx"), JActivity.ACTIVITY, new OrderField[] { JActivity.ACTIVITY.PROJECT_ID }, false); + public static final Index ATT_ITEM_IDX = Internal.createIndex(DSL.name("att_item_idx"), JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.ITEM_ID }, false); + public static final Index ATT_LAUNCH_IDX = Internal.createIndex(DSL.name("att_launch_idx"), JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.LAUNCH_ID }, false); + public static final Index ATT_PROJECT_IDX = Internal.createIndex(DSL.name("att_project_idx"), JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.PROJECT_ID }, false); + public static final Index ATTACHMENT_PROJECT_ID_CREATION_TIME_IDX = Internal.createIndex(DSL.name("attachment_project_id_creation_time_idx"), JAttachment.ATTACHMENT, new OrderField[] { JAttachment.ATTACHMENT.PROJECT_ID, JAttachment.ATTACHMENT.CREATION_DATE }, false); + public static final Index CLUSTER_INDEX_ID_IDX = Internal.createIndex(DSL.name("cluster_index_id_idx"), JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.INDEX_ID }, false); + public static final Index CLUSTER_ITEM_CLUSTER_IDX = Internal.createIndex(DSL.name("cluster_item_cluster_idx"), JClustersTestItem.CLUSTERS_TEST_ITEM, new OrderField[] { JClustersTestItem.CLUSTERS_TEST_ITEM.CLUSTER_ID }, false); + public static final Index CLUSTER_ITEM_ITEM_IDX = Internal.createIndex(DSL.name("cluster_item_item_idx"), JClustersTestItem.CLUSTERS_TEST_ITEM, new OrderField[] { JClustersTestItem.CLUSTERS_TEST_ITEM.ITEM_ID }, false); + public static final Index CLUSTER_LAUNCH_IDX = Internal.createIndex(DSL.name("cluster_launch_idx"), JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.LAUNCH_ID }, false); + public static final Index CLUSTER_PROJECT_IDX = Internal.createIndex(DSL.name("cluster_project_idx"), JClusters.CLUSTERS, new OrderField[] { JClusters.CLUSTERS.PROJECT_ID }, false); + public static final Index CONTENT_FIELD_IDX = Internal.createIndex(DSL.name("content_field_idx"), JContentField.CONTENT_FIELD, new OrderField[] { JContentField.CONTENT_FIELD.FIELD }, false); + public static final Index CONTENT_FIELD_WIDGET_IDX = Internal.createIndex(DSL.name("content_field_widget_idx"), JContentField.CONTENT_FIELD, new OrderField[] { JContentField.CONTENT_FIELD.ID }, false); + public static final Index FILTER_COND_FILTER_IDX = Internal.createIndex(DSL.name("filter_cond_filter_idx"), JFilterCondition.FILTER_CONDITION, new OrderField[] { JFilterCondition.FILTER_CONDITION.FILTER_ID }, false); + public static final Index FILTER_SORT_FILTER_IDX = Internal.createIndex(DSL.name("filter_sort_filter_idx"), JFilterSort.FILTER_SORT, new OrderField[] { JFilterSort.FILTER_SORT.FILTER_ID }, false); + public static final Index HASH_API_KEYS_IDX = Internal.createIndex(DSL.name("hash_api_keys_idx"), JApiKeys.API_KEYS, new OrderField[] { JApiKeys.API_KEYS.HASH }, false); + public static final Index INTEGR_PROJECT_IDX = Internal.createIndex(DSL.name("integr_project_idx"), JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.PROJECT_ID }, false); + public static final Index ISSUE_IT_IDX = Internal.createIndex(DSL.name("issue_it_idx"), JIssue.ISSUE, new OrderField[] { JIssue.ISSUE.ISSUE_TYPE }, false); + public static final Index ISSUE_TYPE_GROUP_IDX = Internal.createIndex(DSL.name("issue_type_group_idx"), JIssueType.ISSUE_TYPE, new OrderField[] { JIssueType.ISSUE_TYPE.ISSUE_GROUP_ID }, false); + public static final Index ITEM_ATTR_LAUNCH_IDX = Internal.createIndex(DSL.name("item_attr_launch_idx"), JItemAttribute.ITEM_ATTRIBUTE, new OrderField[] { JItemAttribute.ITEM_ATTRIBUTE.LAUNCH_ID }, false); + public static final Index ITEM_ATTR_TI_IDX = Internal.createIndex(DSL.name("item_attr_ti_idx"), JItemAttribute.ITEM_ATTRIBUTE, new OrderField[] { JItemAttribute.ITEM_ATTRIBUTE.ITEM_ID }, false); + public static final Index ITEM_TEST_CASE_ID_LAUNCH_ID_IDX = Internal.createIndex(DSL.name("item_test_case_id_launch_id_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.TEST_CASE_ID, JTestItem.TEST_ITEM.LAUNCH_ID }, false); + public static final Index L_ATTR_RL_SEND_CASE_IDX = Internal.createIndex(DSL.name("l_attr_rl_send_case_idx"), JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, new OrderField[] { JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.SENDER_CASE_ID }, false); + public static final Index LAUNCH_PROJECT_START_TIME_IDX = Internal.createIndex(DSL.name("launch_project_start_time_idx"), JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.PROJECT_ID, JLaunch.LAUNCH.START_TIME }, false); + public static final Index LAUNCH_USER_IDX = Internal.createIndex(DSL.name("launch_user_idx"), JLaunch.LAUNCH, new OrderField[] { JLaunch.LAUNCH.USER_ID }, false); + public static final Index LN_SEND_CASE_IDX = Internal.createIndex(DSL.name("ln_send_case_idx"), JLaunchNames.LAUNCH_NAMES, new OrderField[] { JLaunchNames.LAUNCH_NAMES.SENDER_CASE_ID }, false); + public static final Index LOG_ATTACH_ID_IDX = Internal.createIndex(DSL.name("log_attach_id_idx"), JLog.LOG, new OrderField[] { JLog.LOG.ATTACHMENT_ID }, false); + public static final Index LOG_CLUSTER_IDX = Internal.createIndex(DSL.name("log_cluster_idx"), JLog.LOG, new OrderField[] { JLog.LOG.CLUSTER_ID }, false); + public static final Index LOG_LAUNCH_ID_IDX = Internal.createIndex(DSL.name("log_launch_id_idx"), JLog.LOG, new OrderField[] { JLog.LOG.LAUNCH_ID }, false); + public static final Index LOG_PROJECT_ID_LOG_TIME_IDX = Internal.createIndex(DSL.name("log_project_id_log_time_idx"), JLog.LOG, new OrderField[] { JLog.LOG.PROJECT_ID, JLog.LOG.LOG_TIME }, false); + public static final Index LOG_PROJECT_IDX = Internal.createIndex(DSL.name("log_project_idx"), JLog.LOG, new OrderField[] { JLog.LOG.PROJECT_ID }, false); + public static final Index LOG_TI_IDX = Internal.createIndex(DSL.name("log_ti_idx"), JLog.LOG, new OrderField[] { JLog.LOG.ITEM_ID }, false); + public static final Index PARAMETER_TI_IDX = Internal.createIndex(DSL.name("parameter_ti_idx"), JParameter.PARAMETER, new OrderField[] { JParameter.PARAMETER.ITEM_ID }, false); + public static final Index PATH_GIST_IDX = Internal.createIndex(DSL.name("path_gist_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.PATH }, false); + public static final Index PATTERN_ITEM_ITEM_ID_IDX = Internal.createIndex(DSL.name("pattern_item_item_id_idx"), JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, new OrderField[] { JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID }, false); + public static final Index RCPNT_SEND_CASE_IDX = Internal.createIndex(DSL.name("rcpnt_send_case_idx"), JRecipients.RECIPIENTS, new OrderField[] { JRecipients.RECIPIENTS.SENDER_CASE_ID }, false); + public static final Index SENDER_CASE_PROJECT_IDX = Internal.createIndex(DSL.name("sender_case_project_idx"), JSenderCase.SENDER_CASE, new OrderField[] { JSenderCase.SENDER_CASE.PROJECT_ID }, false); + public static final Index SHARED_ENTITY_OWNERX = Internal.createIndex(DSL.name("shared_entity_ownerx"), JOwnedEntity.OWNED_ENTITY, new OrderField[] { JOwnedEntity.OWNED_ENTITY.OWNER }, false); + public static final Index SHARED_ENTITY_PROJECT_IDX = Internal.createIndex(DSL.name("shared_entity_project_idx"), JOwnedEntity.OWNED_ENTITY, new OrderField[] { JOwnedEntity.OWNED_ENTITY.PROJECT_ID }, false); + public static final Index STALE_MV_CREATION_DATE_IDX = Internal.createIndex(DSL.name("stale_mv_creation_date_idx"), JStaleMaterializedView.STALE_MATERIALIZED_VIEW, new OrderField[] { JStaleMaterializedView.STALE_MATERIALIZED_VIEW.CREATION_DATE }, false); + public static final Index STATISTICS_LAUNCH_IDX = Internal.createIndex(DSL.name("statistics_launch_idx"), JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.LAUNCH_ID }, false); + public static final Index STATISTICS_TI_IDX = Internal.createIndex(DSL.name("statistics_ti_idx"), JStatistics.STATISTICS, new OrderField[] { JStatistics.STATISTICS.ITEM_ID }, false); + public static final Index TEST_CASE_HASH_LAUNCH_ID_IDX = Internal.createIndex(DSL.name("test_case_hash_launch_id_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.TEST_CASE_HASH, JTestItem.TEST_ITEM.LAUNCH_ID }, false); + public static final Index TEST_ITEM_UNIQUE_ID_LAUNCH_ID_IDX = Internal.createIndex(DSL.name("test_item_unique_id_launch_id_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.UNIQUE_ID, JTestItem.TEST_ITEM.LAUNCH_ID }, false); + public static final Index TI_LAUNCH_IDX = Internal.createIndex(DSL.name("ti_launch_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.LAUNCH_ID }, false); + public static final Index TI_PARENT_IDX = Internal.createIndex(DSL.name("ti_parent_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.PARENT_ID }, false); + public static final Index TI_RETRY_OF_IDX = Internal.createIndex(DSL.name("ti_retry_of_idx"), JTestItem.TEST_ITEM, new OrderField[] { JTestItem.TEST_ITEM.RETRY_OF }, false); + public static final Index TICKET_ID_IDX = Internal.createIndex(DSL.name("ticket_id_idx"), JTicket.TICKET, new OrderField[] { JTicket.TICKET.TICKET_ID }, false); + public static final Index TICKET_SUBMITTER_IDX = Internal.createIndex(DSL.name("ticket_submitter_idx"), JTicket.TICKET, new OrderField[] { JTicket.TICKET.SUBMITTER }, false); + public static final Index UNIQUE_GLOBAL_INTEGRATION_NAME = Internal.createIndex(DSL.name("unique_global_integration_name"), JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.NAME, JIntegration.INTEGRATION.TYPE }, true); + public static final Index UNIQUE_PROJECT_INTEGRATION_NAME = Internal.createIndex(DSL.name("unique_project_integration_name"), JIntegration.INTEGRATION, new OrderField[] { JIntegration.INTEGRATION.NAME, JIntegration.INTEGRATION.TYPE, JIntegration.INTEGRATION.PROJECT_ID }, true); + public static final Index UNIQUE_RULE_NAME_PER_PROJECT_RULE_TYPE = Internal.createIndex(DSL.name("unique_rule_name_per_project_rule_type"), JSenderCase.SENDER_CASE, new OrderField[] { JSenderCase.SENDER_CASE.RULE_NAME, JSenderCase.SENDER_CASE.PROJECT_ID, JSenderCase.SENDER_CASE.RULE_TYPE }, true); } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/JPublic.java b/src/main/java/com/epam/ta/reportportal/jooq/JPublic.java index 9ebc78eb5..c62cb2385 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/JPublic.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/JPublic.java @@ -61,12 +61,9 @@ import com.epam.ta.reportportal.jooq.tables.JWidgetFilter; import com.epam.ta.reportportal.jooq.tables.records.JPgpArmorHeadersRecord; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.Configuration; import org.jooq.Field; @@ -79,17 +76,10 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JPublic extends SchemaImpl { - private static final long serialVersionUID = 259756826; + private static final long serialVersionUID = 1L; /** * The reference instance of public @@ -99,298 +89,311 @@ public class JPublic extends SchemaImpl { /** * The table public.activity. */ - public final JActivity ACTIVITY = com.epam.ta.reportportal.jooq.tables.JActivity.ACTIVITY; + public final JActivity ACTIVITY = JActivity.ACTIVITY; /** * The table public.analytics_data. */ - public final JAnalyticsData ANALYTICS_DATA = com.epam.ta.reportportal.jooq.tables.JAnalyticsData.ANALYTICS_DATA; + public final JAnalyticsData ANALYTICS_DATA = JAnalyticsData.ANALYTICS_DATA; /** * The table public.api_keys. */ - public final JApiKeys API_KEYS = com.epam.ta.reportportal.jooq.tables.JApiKeys.API_KEYS; + public final JApiKeys API_KEYS = JApiKeys.API_KEYS; /** * The table public.attachment. */ - public final JAttachment ATTACHMENT = com.epam.ta.reportportal.jooq.tables.JAttachment.ATTACHMENT; + public final JAttachment ATTACHMENT = JAttachment.ATTACHMENT; /** * The table public.attachment_deletion. */ - public final JAttachmentDeletion ATTACHMENT_DELETION = com.epam.ta.reportportal.jooq.tables.JAttachmentDeletion.ATTACHMENT_DELETION; + public final JAttachmentDeletion ATTACHMENT_DELETION = JAttachmentDeletion.ATTACHMENT_DELETION; /** * The table public.attribute. */ - public final JAttribute ATTRIBUTE = com.epam.ta.reportportal.jooq.tables.JAttribute.ATTRIBUTE; + public final JAttribute ATTRIBUTE = JAttribute.ATTRIBUTE; /** * The table public.clusters. */ - public final JClusters CLUSTERS = com.epam.ta.reportportal.jooq.tables.JClusters.CLUSTERS; + public final JClusters CLUSTERS = JClusters.CLUSTERS; /** * The table public.clusters_test_item. */ - public final JClustersTestItem CLUSTERS_TEST_ITEM = com.epam.ta.reportportal.jooq.tables.JClustersTestItem.CLUSTERS_TEST_ITEM; + public final JClustersTestItem CLUSTERS_TEST_ITEM = JClustersTestItem.CLUSTERS_TEST_ITEM; /** * The table public.content_field. */ - public final JContentField CONTENT_FIELD = com.epam.ta.reportportal.jooq.tables.JContentField.CONTENT_FIELD; + public final JContentField CONTENT_FIELD = JContentField.CONTENT_FIELD; /** * The table public.dashboard. */ - public final JDashboard DASHBOARD = com.epam.ta.reportportal.jooq.tables.JDashboard.DASHBOARD; + public final JDashboard DASHBOARD = JDashboard.DASHBOARD; /** * The table public.dashboard_widget. */ - public final JDashboardWidget DASHBOARD_WIDGET = com.epam.ta.reportportal.jooq.tables.JDashboardWidget.DASHBOARD_WIDGET; + public final JDashboardWidget DASHBOARD_WIDGET = JDashboardWidget.DASHBOARD_WIDGET; /** * The table public.filter. */ - public final JFilter FILTER = com.epam.ta.reportportal.jooq.tables.JFilter.FILTER; + public final JFilter FILTER = JFilter.FILTER; /** * The table public.filter_condition. */ - public final JFilterCondition FILTER_CONDITION = com.epam.ta.reportportal.jooq.tables.JFilterCondition.FILTER_CONDITION; + public final JFilterCondition FILTER_CONDITION = JFilterCondition.FILTER_CONDITION; /** * The table public.filter_sort. */ - public final JFilterSort FILTER_SORT = com.epam.ta.reportportal.jooq.tables.JFilterSort.FILTER_SORT; + public final JFilterSort FILTER_SORT = JFilterSort.FILTER_SORT; /** * The table public.integration. */ - public final JIntegration INTEGRATION = com.epam.ta.reportportal.jooq.tables.JIntegration.INTEGRATION; + public final JIntegration INTEGRATION = JIntegration.INTEGRATION; /** * The table public.integration_type. */ - public final JIntegrationType INTEGRATION_TYPE = com.epam.ta.reportportal.jooq.tables.JIntegrationType.INTEGRATION_TYPE; + public final JIntegrationType INTEGRATION_TYPE = JIntegrationType.INTEGRATION_TYPE; /** * The table public.issue. */ - public final JIssue ISSUE = com.epam.ta.reportportal.jooq.tables.JIssue.ISSUE; + public final JIssue ISSUE = JIssue.ISSUE; /** * The table public.issue_group. */ - public final JIssueGroup ISSUE_GROUP = com.epam.ta.reportportal.jooq.tables.JIssueGroup.ISSUE_GROUP; + public final JIssueGroup ISSUE_GROUP = JIssueGroup.ISSUE_GROUP; /** * The table public.issue_ticket. */ - public final JIssueTicket ISSUE_TICKET = com.epam.ta.reportportal.jooq.tables.JIssueTicket.ISSUE_TICKET; + public final JIssueTicket ISSUE_TICKET = JIssueTicket.ISSUE_TICKET; /** * The table public.issue_type. */ - public final JIssueType ISSUE_TYPE = com.epam.ta.reportportal.jooq.tables.JIssueType.ISSUE_TYPE; + public final JIssueType ISSUE_TYPE = JIssueType.ISSUE_TYPE; /** * The table public.issue_type_project. */ - public final JIssueTypeProject ISSUE_TYPE_PROJECT = com.epam.ta.reportportal.jooq.tables.JIssueTypeProject.ISSUE_TYPE_PROJECT; + public final JIssueTypeProject ISSUE_TYPE_PROJECT = JIssueTypeProject.ISSUE_TYPE_PROJECT; /** * The table public.item_attribute. */ - public final JItemAttribute ITEM_ATTRIBUTE = com.epam.ta.reportportal.jooq.tables.JItemAttribute.ITEM_ATTRIBUTE; + public final JItemAttribute ITEM_ATTRIBUTE = JItemAttribute.ITEM_ATTRIBUTE; /** * The table public.launch. */ - public final JLaunch LAUNCH = com.epam.ta.reportportal.jooq.tables.JLaunch.LAUNCH; + public final JLaunch LAUNCH = JLaunch.LAUNCH; /** * The table public.launch_attribute_rules. */ - public final JLaunchAttributeRules LAUNCH_ATTRIBUTE_RULES = com.epam.ta.reportportal.jooq.tables.JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES; + public final JLaunchAttributeRules LAUNCH_ATTRIBUTE_RULES = JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES; /** * The table public.launch_names. */ - public final JLaunchNames LAUNCH_NAMES = com.epam.ta.reportportal.jooq.tables.JLaunchNames.LAUNCH_NAMES; + public final JLaunchNames LAUNCH_NAMES = JLaunchNames.LAUNCH_NAMES; /** * The table public.launch_number. */ - public final JLaunchNumber LAUNCH_NUMBER = com.epam.ta.reportportal.jooq.tables.JLaunchNumber.LAUNCH_NUMBER; + public final JLaunchNumber LAUNCH_NUMBER = JLaunchNumber.LAUNCH_NUMBER; /** * The table public.log. */ - public final JLog LOG = com.epam.ta.reportportal.jooq.tables.JLog.LOG; + public final JLog LOG = JLog.LOG; /** * The table public.oauth_registration. */ - public final JOauthRegistration OAUTH_REGISTRATION = com.epam.ta.reportportal.jooq.tables.JOauthRegistration.OAUTH_REGISTRATION; + public final JOauthRegistration OAUTH_REGISTRATION = JOauthRegistration.OAUTH_REGISTRATION; /** * The table public.oauth_registration_restriction. */ - public final JOauthRegistrationRestriction OAUTH_REGISTRATION_RESTRICTION = com.epam.ta.reportportal.jooq.tables.JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION; + public final JOauthRegistrationRestriction OAUTH_REGISTRATION_RESTRICTION = JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION; /** * The table public.oauth_registration_scope. */ - public final JOauthRegistrationScope OAUTH_REGISTRATION_SCOPE = com.epam.ta.reportportal.jooq.tables.JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE; + public final JOauthRegistrationScope OAUTH_REGISTRATION_SCOPE = JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE; /** * The table public.onboarding. */ - public final JOnboarding ONBOARDING = com.epam.ta.reportportal.jooq.tables.JOnboarding.ONBOARDING; + public final JOnboarding ONBOARDING = JOnboarding.ONBOARDING; /** * The table public.owned_entity. */ - public final JOwnedEntity OWNED_ENTITY = com.epam.ta.reportportal.jooq.tables.JOwnedEntity.OWNED_ENTITY; + public final JOwnedEntity OWNED_ENTITY = JOwnedEntity.OWNED_ENTITY; /** * The table public.parameter. */ - public final JParameter PARAMETER = com.epam.ta.reportportal.jooq.tables.JParameter.PARAMETER; + public final JParameter PARAMETER = JParameter.PARAMETER; /** * The table public.pattern_template. */ - public final JPatternTemplate PATTERN_TEMPLATE = com.epam.ta.reportportal.jooq.tables.JPatternTemplate.PATTERN_TEMPLATE; + public final JPatternTemplate PATTERN_TEMPLATE = JPatternTemplate.PATTERN_TEMPLATE; /** * The table public.pattern_template_test_item. */ - public final JPatternTemplateTestItem PATTERN_TEMPLATE_TEST_ITEM = com.epam.ta.reportportal.jooq.tables.JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM; + public final JPatternTemplateTestItem PATTERN_TEMPLATE_TEST_ITEM = JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM; /** * The table public.pgp_armor_headers. */ - public final JPgpArmorHeaders PGP_ARMOR_HEADERS = com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS; + public final JPgpArmorHeaders PGP_ARMOR_HEADERS = JPgpArmorHeaders.PGP_ARMOR_HEADERS; /** * Call public.pgp_armor_headers. */ - public static Result PGP_ARMOR_HEADERS(Configuration configuration, String __1) { - return configuration.dsl().selectFrom(com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call(__1)).fetch(); + public static Result PGP_ARMOR_HEADERS( + Configuration configuration + , String __1 + ) { + return configuration.dsl().selectFrom(com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call( + __1 + )).fetch(); } /** * Get public.pgp_armor_headers as a table. */ - public static JPgpArmorHeaders PGP_ARMOR_HEADERS(String __1) { - return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call(__1); + public static JPgpArmorHeaders PGP_ARMOR_HEADERS( + String __1 + ) { + return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call( + __1 + ); } /** * Get public.pgp_armor_headers as a table. */ - public static JPgpArmorHeaders PGP_ARMOR_HEADERS(Field __1) { - return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call(__1); + public static JPgpArmorHeaders PGP_ARMOR_HEADERS( + Field __1 + ) { + return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call( + __1 + ); } /** * The table public.project. */ - public final JProject PROJECT = com.epam.ta.reportportal.jooq.tables.JProject.PROJECT; + public final JProject PROJECT = JProject.PROJECT; /** * The table public.project_attribute. */ - public final JProjectAttribute PROJECT_ATTRIBUTE = com.epam.ta.reportportal.jooq.tables.JProjectAttribute.PROJECT_ATTRIBUTE; + public final JProjectAttribute PROJECT_ATTRIBUTE = JProjectAttribute.PROJECT_ATTRIBUTE; /** * The table public.project_user. */ - public final JProjectUser PROJECT_USER = com.epam.ta.reportportal.jooq.tables.JProjectUser.PROJECT_USER; + public final JProjectUser PROJECT_USER = JProjectUser.PROJECT_USER; /** * The table public.recipients. */ - public final JRecipients RECIPIENTS = com.epam.ta.reportportal.jooq.tables.JRecipients.RECIPIENTS; + public final JRecipients RECIPIENTS = JRecipients.RECIPIENTS; /** * The table public.restore_password_bid. */ - public final JRestorePasswordBid RESTORE_PASSWORD_BID = com.epam.ta.reportportal.jooq.tables.JRestorePasswordBid.RESTORE_PASSWORD_BID; + public final JRestorePasswordBid RESTORE_PASSWORD_BID = JRestorePasswordBid.RESTORE_PASSWORD_BID; /** * The table public.sender_case. */ - public final JSenderCase SENDER_CASE = com.epam.ta.reportportal.jooq.tables.JSenderCase.SENDER_CASE; + public final JSenderCase SENDER_CASE = JSenderCase.SENDER_CASE; /** * The table public.server_settings. */ - public final JServerSettings SERVER_SETTINGS = com.epam.ta.reportportal.jooq.tables.JServerSettings.SERVER_SETTINGS; + public final JServerSettings SERVER_SETTINGS = JServerSettings.SERVER_SETTINGS; /** * The table public.shedlock. */ - public final JShedlock SHEDLOCK = com.epam.ta.reportportal.jooq.tables.JShedlock.SHEDLOCK; + public final JShedlock SHEDLOCK = JShedlock.SHEDLOCK; /** * The table public.stale_materialized_view. */ - public final JStaleMaterializedView STALE_MATERIALIZED_VIEW = com.epam.ta.reportportal.jooq.tables.JStaleMaterializedView.STALE_MATERIALIZED_VIEW; + public final JStaleMaterializedView STALE_MATERIALIZED_VIEW = JStaleMaterializedView.STALE_MATERIALIZED_VIEW; /** * The table public.statistics. */ - public final JStatistics STATISTICS = com.epam.ta.reportportal.jooq.tables.JStatistics.STATISTICS; + public final JStatistics STATISTICS = JStatistics.STATISTICS; /** * The table public.statistics_field. */ - public final JStatisticsField STATISTICS_FIELD = com.epam.ta.reportportal.jooq.tables.JStatisticsField.STATISTICS_FIELD; + public final JStatisticsField STATISTICS_FIELD = JStatisticsField.STATISTICS_FIELD; /** * The table public.test_item. */ - public final JTestItem TEST_ITEM = com.epam.ta.reportportal.jooq.tables.JTestItem.TEST_ITEM; + public final JTestItem TEST_ITEM = JTestItem.TEST_ITEM; /** * The table public.test_item_results. */ - public final JTestItemResults TEST_ITEM_RESULTS = com.epam.ta.reportportal.jooq.tables.JTestItemResults.TEST_ITEM_RESULTS; + public final JTestItemResults TEST_ITEM_RESULTS = JTestItemResults.TEST_ITEM_RESULTS; /** * The table public.ticket. */ - public final JTicket TICKET = com.epam.ta.reportportal.jooq.tables.JTicket.TICKET; + public final JTicket TICKET = JTicket.TICKET; /** * The table public.user_creation_bid. */ - public final JUserCreationBid USER_CREATION_BID = com.epam.ta.reportportal.jooq.tables.JUserCreationBid.USER_CREATION_BID; + public final JUserCreationBid USER_CREATION_BID = JUserCreationBid.USER_CREATION_BID; /** * The table public.user_preference. */ - public final JUserPreference USER_PREFERENCE = com.epam.ta.reportportal.jooq.tables.JUserPreference.USER_PREFERENCE; + public final JUserPreference USER_PREFERENCE = JUserPreference.USER_PREFERENCE; /** * The table public.users. */ - public final JUsers USERS = com.epam.ta.reportportal.jooq.tables.JUsers.USERS; + public final JUsers USERS = JUsers.USERS; /** * The table public.widget. */ - public final JWidget WIDGET = com.epam.ta.reportportal.jooq.tables.JWidget.WIDGET; + public final JWidget WIDGET = JWidget.WIDGET; /** * The table public.widget_filter. */ - public final JWidgetFilter WIDGET_FILTER = com.epam.ta.reportportal.jooq.tables.JWidgetFilter.WIDGET_FILTER; + public final JWidgetFilter WIDGET_FILTER = JWidgetFilter.WIDGET_FILTER; /** * No further instances allowed @@ -407,59 +410,14 @@ public Catalog getCatalog() { @Override public final List> getSequences() { - List result = new ArrayList(); - result.addAll(getSequences0()); - return result; - } - - private final List> getSequences0() { - return Arrays.>asList( - Sequences.ACTIVITY_ID_SEQ, - Sequences.ANALYTICS_DATA_ID_SEQ, - Sequences.API_KEYS_ID_SEQ, - Sequences.ATTACHMENT_ID_SEQ, - Sequences.ATTRIBUTE_ID_SEQ, - Sequences.CLUSTERS_ID_SEQ, - Sequences.FILTER_CONDITION_ID_SEQ, - Sequences.FILTER_SORT_ID_SEQ, - Sequences.INTEGRATION_ID_SEQ, - Sequences.INTEGRATION_TYPE_ID_SEQ, - Sequences.ISSUE_GROUP_ISSUE_GROUP_ID_SEQ, - Sequences.ISSUE_TYPE_ID_SEQ, - Sequences.ITEM_ATTRIBUTE_ID_SEQ, - Sequences.LAUNCH_ATTRIBUTE_RULES_ID_SEQ, - Sequences.LAUNCH_ID_SEQ, - Sequences.LAUNCH_NUMBER_ID_SEQ, - Sequences.LOG_ID_SEQ, - Sequences.OAUTH_REGISTRATION_RESTRICTION_ID_SEQ, - Sequences.OAUTH_REGISTRATION_SCOPE_ID_SEQ, - Sequences.ONBOARDING_ID_SEQ, - Sequences.PATTERN_TEMPLATE_ID_SEQ, - Sequences.PROJECT_ATTRIBUTE_ATTRIBUTE_ID_SEQ, - Sequences.PROJECT_ATTRIBUTE_PROJECT_ID_SEQ, - Sequences.PROJECT_ID_SEQ, - Sequences.SENDER_CASE_ID_SEQ, - Sequences.SENDER_CASE_PROJECT_ID_SEQ, - Sequences.SERVER_SETTINGS_ID_SEQ, - Sequences.SHAREABLE_ENTITY_ID_SEQ, - Sequences.STALE_MATERIALIZED_VIEW_ID_SEQ, - Sequences.STATISTICS_FIELD_SF_ID_SEQ, - Sequences.STATISTICS_S_ID_SEQ, - Sequences.TEST_ITEM_ITEM_ID_SEQ, - Sequences.TICKET_ID_SEQ, - Sequences.USER_PREFERENCE_ID_SEQ, - Sequences.USERS_ID_SEQ); + return Arrays.asList( + Sequences.SHAREABLE_ENTITY_ID_SEQ + ); } @Override public final List> getTables() { - List result = new ArrayList(); - result.addAll(getTables0()); - return result; - } - - private final List> getTables0() { - return Arrays.>asList( + return Arrays.asList( JActivity.ACTIVITY, JAnalyticsData.ANALYTICS_DATA, JApiKeys.API_KEYS, @@ -514,6 +472,7 @@ private final List> getTables0() { JUserPreference.USER_PREFERENCE, JUsers.USERS, JWidget.WIDGET, - JWidgetFilter.WIDGET_FILTER); + JWidgetFilter.WIDGET_FILTER + ); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/Keys.java b/src/main/java/com/epam/ta/reportportal/jooq/Keys.java index fca202dc2..60ee9de33 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/Keys.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/Keys.java @@ -113,375 +113,155 @@ import com.epam.ta.reportportal.jooq.tables.records.JWidgetFilterRecord; import com.epam.ta.reportportal.jooq.tables.records.JWidgetRecord; -import javax.annotation.processing.Generated; - import org.jooq.ForeignKey; -import org.jooq.Identity; +import org.jooq.TableField; import org.jooq.UniqueKey; +import org.jooq.impl.DSL; import org.jooq.impl.Internal; /** - * A class modelling foreign key relationships and constraints of tables of - * the public schema. + * A class modelling foreign key relationships and constraints of tables in + * public. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class Keys { - // ------------------------------------------------------------------------- - // IDENTITY definitions - // ------------------------------------------------------------------------- - - public static final Identity IDENTITY_ACTIVITY = Identities0.IDENTITY_ACTIVITY; - public static final Identity IDENTITY_ANALYTICS_DATA = Identities0.IDENTITY_ANALYTICS_DATA; - public static final Identity IDENTITY_API_KEYS = Identities0.IDENTITY_API_KEYS; - public static final Identity IDENTITY_ATTACHMENT = Identities0.IDENTITY_ATTACHMENT; - public static final Identity IDENTITY_ATTRIBUTE = Identities0.IDENTITY_ATTRIBUTE; - public static final Identity IDENTITY_CLUSTERS = Identities0.IDENTITY_CLUSTERS; - public static final Identity IDENTITY_FILTER_CONDITION = Identities0.IDENTITY_FILTER_CONDITION; - public static final Identity IDENTITY_FILTER_SORT = Identities0.IDENTITY_FILTER_SORT; - public static final Identity IDENTITY_INTEGRATION = Identities0.IDENTITY_INTEGRATION; - public static final Identity IDENTITY_INTEGRATION_TYPE = Identities0.IDENTITY_INTEGRATION_TYPE; - public static final Identity IDENTITY_ISSUE_GROUP = Identities0.IDENTITY_ISSUE_GROUP; - public static final Identity IDENTITY_ISSUE_TYPE = Identities0.IDENTITY_ISSUE_TYPE; - public static final Identity IDENTITY_ITEM_ATTRIBUTE = Identities0.IDENTITY_ITEM_ATTRIBUTE; - public static final Identity IDENTITY_LAUNCH = Identities0.IDENTITY_LAUNCH; - public static final Identity IDENTITY_LAUNCH_ATTRIBUTE_RULES = Identities0.IDENTITY_LAUNCH_ATTRIBUTE_RULES; - public static final Identity IDENTITY_LAUNCH_NUMBER = Identities0.IDENTITY_LAUNCH_NUMBER; - public static final Identity IDENTITY_LOG = Identities0.IDENTITY_LOG; - public static final Identity IDENTITY_OAUTH_REGISTRATION_RESTRICTION = Identities0.IDENTITY_OAUTH_REGISTRATION_RESTRICTION; - public static final Identity IDENTITY_OAUTH_REGISTRATION_SCOPE = Identities0.IDENTITY_OAUTH_REGISTRATION_SCOPE; - public static final Identity IDENTITY_ONBOARDING = Identities0.IDENTITY_ONBOARDING; - public static final Identity IDENTITY_OWNED_ENTITY = Identities0.IDENTITY_OWNED_ENTITY; - public static final Identity IDENTITY_PATTERN_TEMPLATE = Identities0.IDENTITY_PATTERN_TEMPLATE; - public static final Identity IDENTITY_PROJECT = Identities0.IDENTITY_PROJECT; - public static final Identity IDENTITY_PROJECT_ATTRIBUTE = Identities0.IDENTITY_PROJECT_ATTRIBUTE; - public static final Identity IDENTITY_SENDER_CASE = Identities0.IDENTITY_SENDER_CASE; - public static final Identity IDENTITY_SERVER_SETTINGS = Identities0.IDENTITY_SERVER_SETTINGS; - public static final Identity IDENTITY_STALE_MATERIALIZED_VIEW = Identities0.IDENTITY_STALE_MATERIALIZED_VIEW; - public static final Identity IDENTITY_STATISTICS = Identities0.IDENTITY_STATISTICS; - public static final Identity IDENTITY_STATISTICS_FIELD = Identities0.IDENTITY_STATISTICS_FIELD; - public static final Identity IDENTITY_TEST_ITEM = Identities0.IDENTITY_TEST_ITEM; - public static final Identity IDENTITY_TICKET = Identities0.IDENTITY_TICKET; - public static final Identity IDENTITY_USER_PREFERENCE = Identities0.IDENTITY_USER_PREFERENCE; - public static final Identity IDENTITY_USERS = Identities0.IDENTITY_USERS; - // ------------------------------------------------------------------------- // UNIQUE and PRIMARY KEY definitions // ------------------------------------------------------------------------- - public static final UniqueKey ACTIVITY_PK = UniqueKeys0.ACTIVITY_PK; - public static final UniqueKey ANALYTICS_DATA_PKEY = UniqueKeys0.ANALYTICS_DATA_PKEY; - public static final UniqueKey API_KEYS_PKEY = UniqueKeys0.API_KEYS_PKEY; - public static final UniqueKey USERS_API_KEYS_UNIQUE = UniqueKeys0.USERS_API_KEYS_UNIQUE; - public static final UniqueKey ATTACHMENT_PK = UniqueKeys0.ATTACHMENT_PK; - public static final UniqueKey ATTACHMENT_DELETION_PKEY = UniqueKeys0.ATTACHMENT_DELETION_PKEY; - public static final UniqueKey ATTRIBUTE_PK = UniqueKeys0.ATTRIBUTE_PK; - public static final UniqueKey CLUSTERS_PK = UniqueKeys0.CLUSTERS_PK; - public static final UniqueKey INDEX_ID_LAUNCH_ID_UNQ = UniqueKeys0.INDEX_ID_LAUNCH_ID_UNQ; - public static final UniqueKey CLUSTER_ITEM_UNQ = UniqueKeys0.CLUSTER_ITEM_UNQ; - public static final UniqueKey DASHBOARD_PKEY = UniqueKeys0.DASHBOARD_PKEY; - public static final UniqueKey DASHBOARD_WIDGET_PK = UniqueKeys0.DASHBOARD_WIDGET_PK; - public static final UniqueKey WIDGET_ON_DASHBOARD_UNQ = UniqueKeys0.WIDGET_ON_DASHBOARD_UNQ; - public static final UniqueKey FILTER_PKEY = UniqueKeys0.FILTER_PKEY; - public static final UniqueKey FILTER_CONDITION_PK = UniqueKeys0.FILTER_CONDITION_PK; - public static final UniqueKey FILTER_SORT_PK = UniqueKeys0.FILTER_SORT_PK; - public static final UniqueKey INTEGRATION_PK = UniqueKeys0.INTEGRATION_PK; - public static final UniqueKey INTEGRATION_TYPE_PK = UniqueKeys0.INTEGRATION_TYPE_PK; - public static final UniqueKey INTEGRATION_TYPE_NAME_KEY = UniqueKeys0.INTEGRATION_TYPE_NAME_KEY; - public static final UniqueKey ISSUE_PK = UniqueKeys0.ISSUE_PK; - public static final UniqueKey ISSUE_GROUP_PK = UniqueKeys0.ISSUE_GROUP_PK; - public static final UniqueKey ISSUE_TICKET_PK = UniqueKeys0.ISSUE_TICKET_PK; - public static final UniqueKey ISSUE_TYPE_PK = UniqueKeys0.ISSUE_TYPE_PK; - public static final UniqueKey ISSUE_TYPE_LOCATOR_KEY = UniqueKeys0.ISSUE_TYPE_LOCATOR_KEY; - public static final UniqueKey ISSUE_TYPE_PROJECT_PK = UniqueKeys0.ISSUE_TYPE_PROJECT_PK; - public static final UniqueKey ITEM_ATTRIBUTE_PK = UniqueKeys0.ITEM_ATTRIBUTE_PK; - public static final UniqueKey LAUNCH_PK = UniqueKeys0.LAUNCH_PK; - public static final UniqueKey LAUNCH_UUID_KEY = UniqueKeys0.LAUNCH_UUID_KEY; - public static final UniqueKey UNQ_NAME_NUMBER = UniqueKeys0.UNQ_NAME_NUMBER; - public static final UniqueKey LAUNCH_ATTRIBUTE_RULES_PK = UniqueKeys0.LAUNCH_ATTRIBUTE_RULES_PK; - public static final UniqueKey LAUNCH_NUMBER_PK = UniqueKeys0.LAUNCH_NUMBER_PK; - public static final UniqueKey UNQ_PROJECT_NAME = UniqueKeys0.UNQ_PROJECT_NAME; - public static final UniqueKey LOG_PK = UniqueKeys0.LOG_PK; - public static final UniqueKey OAUTH_REGISTRATION_PKEY = UniqueKeys0.OAUTH_REGISTRATION_PKEY; - public static final UniqueKey OAUTH_REGISTRATION_CLIENT_ID_KEY = UniqueKeys0.OAUTH_REGISTRATION_CLIENT_ID_KEY; - public static final UniqueKey OAUTH_REGISTRATION_RESTRICTION_PK = UniqueKeys0.OAUTH_REGISTRATION_RESTRICTION_PK; - public static final UniqueKey OAUTH_REGISTRATION_RESTRICTION_UNIQUE = UniqueKeys0.OAUTH_REGISTRATION_RESTRICTION_UNIQUE; - public static final UniqueKey OAUTH_REGISTRATION_SCOPE_PK = UniqueKeys0.OAUTH_REGISTRATION_SCOPE_PK; - public static final UniqueKey OAUTH_REGISTRATION_SCOPE_UNIQUE = UniqueKeys0.OAUTH_REGISTRATION_SCOPE_UNIQUE; - public static final UniqueKey ONBOARDING_PK = UniqueKeys0.ONBOARDING_PK; - public static final UniqueKey SHAREABLE_PK = UniqueKeys0.SHAREABLE_PK; - public static final UniqueKey PATTERN_TEMPLATE_PK = UniqueKeys0.PATTERN_TEMPLATE_PK; - public static final UniqueKey UNQ_NAME_PROJECTID = UniqueKeys0.UNQ_NAME_PROJECTID; - public static final UniqueKey PATTERN_ITEM_UNQ = UniqueKeys0.PATTERN_ITEM_UNQ; - public static final UniqueKey PROJECT_PK = UniqueKeys0.PROJECT_PK; - public static final UniqueKey PROJECT_NAME_KEY = UniqueKeys0.PROJECT_NAME_KEY; - public static final UniqueKey UNIQUE_ATTRIBUTE_PER_PROJECT = UniqueKeys0.UNIQUE_ATTRIBUTE_PER_PROJECT; - public static final UniqueKey USERS_PROJECT_PK = UniqueKeys0.USERS_PROJECT_PK; - public static final UniqueKey RESTORE_PASSWORD_BID_PK = UniqueKeys0.RESTORE_PASSWORD_BID_PK; - public static final UniqueKey RESTORE_PASSWORD_BID_EMAIL_KEY = UniqueKeys0.RESTORE_PASSWORD_BID_EMAIL_KEY; - public static final UniqueKey SENDER_CASE_PK = UniqueKeys0.SENDER_CASE_PK; - public static final UniqueKey SERVER_SETTINGS_ID = UniqueKeys0.SERVER_SETTINGS_ID; - public static final UniqueKey SERVER_SETTINGS_KEY_KEY = UniqueKeys0.SERVER_SETTINGS_KEY_KEY; - public static final UniqueKey SHEDLOCK_PKEY = UniqueKeys0.SHEDLOCK_PKEY; - public static final UniqueKey STALE_MATERIALIZED_VIEW_PKEY = UniqueKeys0.STALE_MATERIALIZED_VIEW_PKEY; - public static final UniqueKey STALE_MATERIALIZED_VIEW_NAME_KEY = UniqueKeys0.STALE_MATERIALIZED_VIEW_NAME_KEY; - public static final UniqueKey STATISTICS_PK = UniqueKeys0.STATISTICS_PK; - public static final UniqueKey UNIQUE_STATS_LAUNCH = UniqueKeys0.UNIQUE_STATS_LAUNCH; - public static final UniqueKey UNIQUE_STATS_ITEM = UniqueKeys0.UNIQUE_STATS_ITEM; - public static final UniqueKey STATISTICS_FIELD_PK = UniqueKeys0.STATISTICS_FIELD_PK; - public static final UniqueKey STATISTICS_FIELD_NAME_KEY = UniqueKeys0.STATISTICS_FIELD_NAME_KEY; - public static final UniqueKey TEST_ITEM_PK = UniqueKeys0.TEST_ITEM_PK; - public static final UniqueKey TEST_ITEM_UUID_KEY = UniqueKeys0.TEST_ITEM_UUID_KEY; - public static final UniqueKey TEST_ITEM_RESULTS_PK = UniqueKeys0.TEST_ITEM_RESULTS_PK; - public static final UniqueKey TICKET_PK = UniqueKeys0.TICKET_PK; - public static final UniqueKey USER_CREATION_BID_PK = UniqueKeys0.USER_CREATION_BID_PK; - public static final UniqueKey USER_PREFERENCE_PK = UniqueKeys0.USER_PREFERENCE_PK; - public static final UniqueKey USER_PREFERENCE_UQ = UniqueKeys0.USER_PREFERENCE_UQ; - public static final UniqueKey USERS_PK = UniqueKeys0.USERS_PK; - public static final UniqueKey USERS_LOGIN_KEY = UniqueKeys0.USERS_LOGIN_KEY; - public static final UniqueKey USERS_EMAIL_KEY = UniqueKeys0.USERS_EMAIL_KEY; - public static final UniqueKey WIDGET_PKEY = UniqueKeys0.WIDGET_PKEY; - public static final UniqueKey WIDGET_FILTER_PK = UniqueKeys0.WIDGET_FILTER_PK; + public static final UniqueKey ACTIVITY_PK = Internal.createUniqueKey(JActivity.ACTIVITY, DSL.name("activity_pk"), new TableField[] { JActivity.ACTIVITY.ID }, true); + public static final UniqueKey ANALYTICS_DATA_PKEY = Internal.createUniqueKey(JAnalyticsData.ANALYTICS_DATA, DSL.name("analytics_data_pkey"), new TableField[] { JAnalyticsData.ANALYTICS_DATA.ID }, true); + public static final UniqueKey API_KEYS_PKEY = Internal.createUniqueKey(JApiKeys.API_KEYS, DSL.name("api_keys_pkey"), new TableField[] { JApiKeys.API_KEYS.ID }, true); + public static final UniqueKey USERS_API_KEYS_UNIQUE = Internal.createUniqueKey(JApiKeys.API_KEYS, DSL.name("users_api_keys_unique"), new TableField[] { JApiKeys.API_KEYS.NAME, JApiKeys.API_KEYS.USER_ID }, true); + public static final UniqueKey ATTACHMENT_PK = Internal.createUniqueKey(JAttachment.ATTACHMENT, DSL.name("attachment_pk"), new TableField[] { JAttachment.ATTACHMENT.ID }, true); + public static final UniqueKey ATTACHMENT_DELETION_PKEY = Internal.createUniqueKey(JAttachmentDeletion.ATTACHMENT_DELETION, DSL.name("attachment_deletion_pkey"), new TableField[] { JAttachmentDeletion.ATTACHMENT_DELETION.ID }, true); + public static final UniqueKey ATTRIBUTE_PK = Internal.createUniqueKey(JAttribute.ATTRIBUTE, DSL.name("attribute_pk"), new TableField[] { JAttribute.ATTRIBUTE.ID }, true); + public static final UniqueKey CLUSTERS_PK = Internal.createUniqueKey(JClusters.CLUSTERS, DSL.name("clusters_pk"), new TableField[] { JClusters.CLUSTERS.ID }, true); + public static final UniqueKey INDEX_ID_LAUNCH_ID_UNQ = Internal.createUniqueKey(JClusters.CLUSTERS, DSL.name("index_id_launch_id_unq"), new TableField[] { JClusters.CLUSTERS.INDEX_ID, JClusters.CLUSTERS.LAUNCH_ID }, true); + public static final UniqueKey CLUSTER_ITEM_UNQ = Internal.createUniqueKey(JClustersTestItem.CLUSTERS_TEST_ITEM, DSL.name("cluster_item_unq"), new TableField[] { JClustersTestItem.CLUSTERS_TEST_ITEM.CLUSTER_ID, JClustersTestItem.CLUSTERS_TEST_ITEM.ITEM_ID }, true); + public static final UniqueKey DASHBOARD_PKEY = Internal.createUniqueKey(JDashboard.DASHBOARD, DSL.name("dashboard_pkey"), new TableField[] { JDashboard.DASHBOARD.ID }, true); + public static final UniqueKey DASHBOARD_WIDGET_PK = Internal.createUniqueKey(JDashboardWidget.DASHBOARD_WIDGET, DSL.name("dashboard_widget_pk"), new TableField[] { JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_ID }, true); + public static final UniqueKey WIDGET_ON_DASHBOARD_UNQ = Internal.createUniqueKey(JDashboardWidget.DASHBOARD_WIDGET, DSL.name("widget_on_dashboard_unq"), new TableField[] { JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_NAME, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_OWNER }, true); + public static final UniqueKey FILTER_PKEY = Internal.createUniqueKey(JFilter.FILTER, DSL.name("filter_pkey"), new TableField[] { JFilter.FILTER.ID }, true); + public static final UniqueKey FILTER_CONDITION_PK = Internal.createUniqueKey(JFilterCondition.FILTER_CONDITION, DSL.name("filter_condition_pk"), new TableField[] { JFilterCondition.FILTER_CONDITION.ID }, true); + public static final UniqueKey FILTER_SORT_PK = Internal.createUniqueKey(JFilterSort.FILTER_SORT, DSL.name("filter_sort_pk"), new TableField[] { JFilterSort.FILTER_SORT.ID }, true); + public static final UniqueKey INTEGRATION_PK = Internal.createUniqueKey(JIntegration.INTEGRATION, DSL.name("integration_pk"), new TableField[] { JIntegration.INTEGRATION.ID }, true); + public static final UniqueKey INTEGRATION_TYPE_NAME_KEY = Internal.createUniqueKey(JIntegrationType.INTEGRATION_TYPE, DSL.name("integration_type_name_key"), new TableField[] { JIntegrationType.INTEGRATION_TYPE.NAME }, true); + public static final UniqueKey INTEGRATION_TYPE_PK = Internal.createUniqueKey(JIntegrationType.INTEGRATION_TYPE, DSL.name("integration_type_pk"), new TableField[] { JIntegrationType.INTEGRATION_TYPE.ID }, true); + public static final UniqueKey ISSUE_PK = Internal.createUniqueKey(JIssue.ISSUE, DSL.name("issue_pk"), new TableField[] { JIssue.ISSUE.ISSUE_ID }, true); + public static final UniqueKey ISSUE_GROUP_PK = Internal.createUniqueKey(JIssueGroup.ISSUE_GROUP, DSL.name("issue_group_pk"), new TableField[] { JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_ID }, true); + public static final UniqueKey ISSUE_TICKET_PK = Internal.createUniqueKey(JIssueTicket.ISSUE_TICKET, DSL.name("issue_ticket_pk"), new TableField[] { JIssueTicket.ISSUE_TICKET.ISSUE_ID, JIssueTicket.ISSUE_TICKET.TICKET_ID }, true); + public static final UniqueKey ISSUE_TYPE_LOCATOR_KEY = Internal.createUniqueKey(JIssueType.ISSUE_TYPE, DSL.name("issue_type_locator_key"), new TableField[] { JIssueType.ISSUE_TYPE.LOCATOR }, true); + public static final UniqueKey ISSUE_TYPE_PK = Internal.createUniqueKey(JIssueType.ISSUE_TYPE, DSL.name("issue_type_pk"), new TableField[] { JIssueType.ISSUE_TYPE.ID }, true); + public static final UniqueKey ISSUE_TYPE_PROJECT_PK = Internal.createUniqueKey(JIssueTypeProject.ISSUE_TYPE_PROJECT, DSL.name("issue_type_project_pk"), new TableField[] { JIssueTypeProject.ISSUE_TYPE_PROJECT.PROJECT_ID, JIssueTypeProject.ISSUE_TYPE_PROJECT.ISSUE_TYPE_ID }, true); + public static final UniqueKey ITEM_ATTRIBUTE_PK = Internal.createUniqueKey(JItemAttribute.ITEM_ATTRIBUTE, DSL.name("item_attribute_pk"), new TableField[] { JItemAttribute.ITEM_ATTRIBUTE.ID }, true); + public static final UniqueKey LAUNCH_PK = Internal.createUniqueKey(JLaunch.LAUNCH, DSL.name("launch_pk"), new TableField[] { JLaunch.LAUNCH.ID }, true); + public static final UniqueKey LAUNCH_UUID_KEY = Internal.createUniqueKey(JLaunch.LAUNCH, DSL.name("launch_uuid_key"), new TableField[] { JLaunch.LAUNCH.UUID }, true); + public static final UniqueKey UNQ_NAME_NUMBER = Internal.createUniqueKey(JLaunch.LAUNCH, DSL.name("unq_name_number"), new TableField[] { JLaunch.LAUNCH.NAME, JLaunch.LAUNCH.NUMBER, JLaunch.LAUNCH.PROJECT_ID }, true); + public static final UniqueKey LAUNCH_ATTRIBUTE_RULES_PK = Internal.createUniqueKey(JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, DSL.name("launch_attribute_rules_pk"), new TableField[] { JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.ID }, true); + public static final UniqueKey LAUNCH_NUMBER_PK = Internal.createUniqueKey(JLaunchNumber.LAUNCH_NUMBER, DSL.name("launch_number_pk"), new TableField[] { JLaunchNumber.LAUNCH_NUMBER.ID }, true); + public static final UniqueKey UNQ_PROJECT_NAME = Internal.createUniqueKey(JLaunchNumber.LAUNCH_NUMBER, DSL.name("unq_project_name"), new TableField[] { JLaunchNumber.LAUNCH_NUMBER.PROJECT_ID, JLaunchNumber.LAUNCH_NUMBER.LAUNCH_NAME }, true); + public static final UniqueKey LOG_PK = Internal.createUniqueKey(JLog.LOG, DSL.name("log_pk"), new TableField[] { JLog.LOG.ID }, true); + public static final UniqueKey OAUTH_REGISTRATION_CLIENT_ID_KEY = Internal.createUniqueKey(JOauthRegistration.OAUTH_REGISTRATION, DSL.name("oauth_registration_client_id_key"), new TableField[] { JOauthRegistration.OAUTH_REGISTRATION.CLIENT_ID }, true); + public static final UniqueKey OAUTH_REGISTRATION_PKEY = Internal.createUniqueKey(JOauthRegistration.OAUTH_REGISTRATION, DSL.name("oauth_registration_pkey"), new TableField[] { JOauthRegistration.OAUTH_REGISTRATION.ID }, true); + public static final UniqueKey OAUTH_REGISTRATION_RESTRICTION_PK = Internal.createUniqueKey(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, DSL.name("oauth_registration_restriction_pk"), new TableField[] { JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.ID }, true); + public static final UniqueKey OAUTH_REGISTRATION_RESTRICTION_UNIQUE = Internal.createUniqueKey(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, DSL.name("oauth_registration_restriction_unique"), new TableField[] { JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.TYPE, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.VALUE, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.OAUTH_REGISTRATION_FK }, true); + public static final UniqueKey OAUTH_REGISTRATION_SCOPE_PK = Internal.createUniqueKey(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, DSL.name("oauth_registration_scope_pk"), new TableField[] { JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.ID }, true); + public static final UniqueKey OAUTH_REGISTRATION_SCOPE_UNIQUE = Internal.createUniqueKey(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, DSL.name("oauth_registration_scope_unique"), new TableField[] { JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.SCOPE, JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.OAUTH_REGISTRATION_FK }, true); + public static final UniqueKey ONBOARDING_PK = Internal.createUniqueKey(JOnboarding.ONBOARDING, DSL.name("onboarding_pk"), new TableField[] { JOnboarding.ONBOARDING.ID }, true); + public static final UniqueKey SHAREABLE_PK = Internal.createUniqueKey(JOwnedEntity.OWNED_ENTITY, DSL.name("shareable_pk"), new TableField[] { JOwnedEntity.OWNED_ENTITY.ID }, true); + public static final UniqueKey PATTERN_TEMPLATE_PK = Internal.createUniqueKey(JPatternTemplate.PATTERN_TEMPLATE, DSL.name("pattern_template_pk"), new TableField[] { JPatternTemplate.PATTERN_TEMPLATE.ID }, true); + public static final UniqueKey UNQ_NAME_PROJECTID = Internal.createUniqueKey(JPatternTemplate.PATTERN_TEMPLATE, DSL.name("unq_name_projectid"), new TableField[] { JPatternTemplate.PATTERN_TEMPLATE.NAME, JPatternTemplate.PATTERN_TEMPLATE.PROJECT_ID }, true); + public static final UniqueKey PATTERN_ITEM_UNQ = Internal.createUniqueKey(JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, DSL.name("pattern_item_unq"), new TableField[] { JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.PATTERN_ID, JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID }, true); + public static final UniqueKey PROJECT_NAME_KEY = Internal.createUniqueKey(JProject.PROJECT, DSL.name("project_name_key"), new TableField[] { JProject.PROJECT.NAME }, true); + public static final UniqueKey PROJECT_PK = Internal.createUniqueKey(JProject.PROJECT, DSL.name("project_pk"), new TableField[] { JProject.PROJECT.ID }, true); + public static final UniqueKey UNIQUE_ATTRIBUTE_PER_PROJECT = Internal.createUniqueKey(JProjectAttribute.PROJECT_ATTRIBUTE, DSL.name("unique_attribute_per_project"), new TableField[] { JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID, JProjectAttribute.PROJECT_ATTRIBUTE.PROJECT_ID }, true); + public static final UniqueKey USERS_PROJECT_PK = Internal.createUniqueKey(JProjectUser.PROJECT_USER, DSL.name("users_project_pk"), new TableField[] { JProjectUser.PROJECT_USER.USER_ID, JProjectUser.PROJECT_USER.PROJECT_ID }, true); + public static final UniqueKey RESTORE_PASSWORD_BID_EMAIL_KEY = Internal.createUniqueKey(JRestorePasswordBid.RESTORE_PASSWORD_BID, DSL.name("restore_password_bid_email_key"), new TableField[] { JRestorePasswordBid.RESTORE_PASSWORD_BID.EMAIL }, true); + public static final UniqueKey RESTORE_PASSWORD_BID_PK = Internal.createUniqueKey(JRestorePasswordBid.RESTORE_PASSWORD_BID, DSL.name("restore_password_bid_pk"), new TableField[] { JRestorePasswordBid.RESTORE_PASSWORD_BID.UUID }, true); + public static final UniqueKey SENDER_CASE_PK = Internal.createUniqueKey(JSenderCase.SENDER_CASE, DSL.name("sender_case_pk"), new TableField[] { JSenderCase.SENDER_CASE.ID }, true); + public static final UniqueKey SERVER_SETTINGS_ID = Internal.createUniqueKey(JServerSettings.SERVER_SETTINGS, DSL.name("server_settings_id"), new TableField[] { JServerSettings.SERVER_SETTINGS.ID }, true); + public static final UniqueKey SERVER_SETTINGS_KEY_KEY = Internal.createUniqueKey(JServerSettings.SERVER_SETTINGS, DSL.name("server_settings_key_key"), new TableField[] { JServerSettings.SERVER_SETTINGS.KEY }, true); + public static final UniqueKey SHEDLOCK_PKEY = Internal.createUniqueKey(JShedlock.SHEDLOCK, DSL.name("shedlock_pkey"), new TableField[] { JShedlock.SHEDLOCK.NAME }, true); + public static final UniqueKey STALE_MATERIALIZED_VIEW_NAME_KEY = Internal.createUniqueKey(JStaleMaterializedView.STALE_MATERIALIZED_VIEW, DSL.name("stale_materialized_view_name_key"), new TableField[] { JStaleMaterializedView.STALE_MATERIALIZED_VIEW.NAME }, true); + public static final UniqueKey STALE_MATERIALIZED_VIEW_PKEY = Internal.createUniqueKey(JStaleMaterializedView.STALE_MATERIALIZED_VIEW, DSL.name("stale_materialized_view_pkey"), new TableField[] { JStaleMaterializedView.STALE_MATERIALIZED_VIEW.ID }, true); + public static final UniqueKey STATISTICS_PK = Internal.createUniqueKey(JStatistics.STATISTICS, DSL.name("statistics_pk"), new TableField[] { JStatistics.STATISTICS.S_ID }, true); + public static final UniqueKey UNIQUE_STATS_ITEM = Internal.createUniqueKey(JStatistics.STATISTICS, DSL.name("unique_stats_item"), new TableField[] { JStatistics.STATISTICS.STATISTICS_FIELD_ID, JStatistics.STATISTICS.ITEM_ID }, true); + public static final UniqueKey UNIQUE_STATS_LAUNCH = Internal.createUniqueKey(JStatistics.STATISTICS, DSL.name("unique_stats_launch"), new TableField[] { JStatistics.STATISTICS.STATISTICS_FIELD_ID, JStatistics.STATISTICS.LAUNCH_ID }, true); + public static final UniqueKey STATISTICS_FIELD_NAME_KEY = Internal.createUniqueKey(JStatisticsField.STATISTICS_FIELD, DSL.name("statistics_field_name_key"), new TableField[] { JStatisticsField.STATISTICS_FIELD.NAME }, true); + public static final UniqueKey STATISTICS_FIELD_PK = Internal.createUniqueKey(JStatisticsField.STATISTICS_FIELD, DSL.name("statistics_field_pk"), new TableField[] { JStatisticsField.STATISTICS_FIELD.SF_ID }, true); + public static final UniqueKey TEST_ITEM_PK = Internal.createUniqueKey(JTestItem.TEST_ITEM, DSL.name("test_item_pk"), new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final UniqueKey TEST_ITEM_UUID_KEY = Internal.createUniqueKey(JTestItem.TEST_ITEM, DSL.name("test_item_uuid_key"), new TableField[] { JTestItem.TEST_ITEM.UUID }, true); + public static final UniqueKey TEST_ITEM_RESULTS_PK = Internal.createUniqueKey(JTestItemResults.TEST_ITEM_RESULTS, DSL.name("test_item_results_pk"), new TableField[] { JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID }, true); + public static final UniqueKey TICKET_PK = Internal.createUniqueKey(JTicket.TICKET, DSL.name("ticket_pk"), new TableField[] { JTicket.TICKET.ID }, true); + public static final UniqueKey USER_CREATION_BID_PK = Internal.createUniqueKey(JUserCreationBid.USER_CREATION_BID, DSL.name("user_creation_bid_pk"), new TableField[] { JUserCreationBid.USER_CREATION_BID.UUID }, true); + public static final UniqueKey USER_PREFERENCE_PK = Internal.createUniqueKey(JUserPreference.USER_PREFERENCE, DSL.name("user_preference_pk"), new TableField[] { JUserPreference.USER_PREFERENCE.ID }, true); + public static final UniqueKey USER_PREFERENCE_UQ = Internal.createUniqueKey(JUserPreference.USER_PREFERENCE, DSL.name("user_preference_uq"), new TableField[] { JUserPreference.USER_PREFERENCE.PROJECT_ID, JUserPreference.USER_PREFERENCE.USER_ID, JUserPreference.USER_PREFERENCE.FILTER_ID }, true); + public static final UniqueKey USERS_EMAIL_KEY = Internal.createUniqueKey(JUsers.USERS, DSL.name("users_email_key"), new TableField[] { JUsers.USERS.EMAIL }, true); + public static final UniqueKey USERS_LOGIN_KEY = Internal.createUniqueKey(JUsers.USERS, DSL.name("users_login_key"), new TableField[] { JUsers.USERS.LOGIN }, true); + public static final UniqueKey USERS_PK = Internal.createUniqueKey(JUsers.USERS, DSL.name("users_pk"), new TableField[] { JUsers.USERS.ID }, true); + public static final UniqueKey WIDGET_PKEY = Internal.createUniqueKey(JWidget.WIDGET, DSL.name("widget_pkey"), new TableField[] { JWidget.WIDGET.ID }, true); + public static final UniqueKey WIDGET_FILTER_PK = Internal.createUniqueKey(JWidgetFilter.WIDGET_FILTER, DSL.name("widget_filter_pk"), new TableField[] { JWidgetFilter.WIDGET_FILTER.WIDGET_ID, JWidgetFilter.WIDGET_FILTER.FILTER_ID }, true); // ------------------------------------------------------------------------- // FOREIGN KEY definitions // ------------------------------------------------------------------------- - public static final ForeignKey ACTIVITY__ACTIVITY_PROJECT_ID_FKEY = ForeignKeys0.ACTIVITY__ACTIVITY_PROJECT_ID_FKEY; - public static final ForeignKey API_KEYS__API_KEYS_USER_ID_FKEY = ForeignKeys0.API_KEYS__API_KEYS_USER_ID_FKEY; - public static final ForeignKey CONTENT_FIELD__CONTENT_FIELD_ID_FKEY = ForeignKeys0.CONTENT_FIELD__CONTENT_FIELD_ID_FKEY; - public static final ForeignKey DASHBOARD__DASHBOARD_ID_FK = ForeignKeys0.DASHBOARD__DASHBOARD_ID_FK; - public static final ForeignKey DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY = ForeignKeys0.DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY; - public static final ForeignKey DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY = ForeignKeys0.DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY; - public static final ForeignKey FILTER__FILTER_ID_FK = ForeignKeys0.FILTER__FILTER_ID_FK; - public static final ForeignKey FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY = ForeignKeys0.FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY; - public static final ForeignKey FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY = ForeignKeys0.FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY; - public static final ForeignKey INTEGRATION__INTEGRATION_PROJECT_ID_FKEY = ForeignKeys0.INTEGRATION__INTEGRATION_PROJECT_ID_FKEY; - public static final ForeignKey INTEGRATION__INTEGRATION_TYPE_FKEY = ForeignKeys0.INTEGRATION__INTEGRATION_TYPE_FKEY; - public static final ForeignKey ISSUE__ISSUE_ISSUE_ID_FKEY = ForeignKeys0.ISSUE__ISSUE_ISSUE_ID_FKEY; - public static final ForeignKey ISSUE__ISSUE_ISSUE_TYPE_FKEY = ForeignKeys0.ISSUE__ISSUE_ISSUE_TYPE_FKEY; - public static final ForeignKey ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY = ForeignKeys0.ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY; - public static final ForeignKey ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY = ForeignKeys0.ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY; - public static final ForeignKey ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY = ForeignKeys0.ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY; - public static final ForeignKey ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY = ForeignKeys0.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY; - public static final ForeignKey ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY = ForeignKeys0.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY; - public static final ForeignKey ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY = ForeignKeys0.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY; - public static final ForeignKey ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY = ForeignKeys0.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY; - public static final ForeignKey LAUNCH__LAUNCH_PROJECT_ID_FKEY = ForeignKeys0.LAUNCH__LAUNCH_PROJECT_ID_FKEY; - public static final ForeignKey LAUNCH__LAUNCH_USER_ID_FKEY = ForeignKeys0.LAUNCH__LAUNCH_USER_ID_FKEY; - public static final ForeignKey LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY = ForeignKeys0.LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY; - public static final ForeignKey LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY = ForeignKeys0.LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY; - public static final ForeignKey LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY = ForeignKeys0.LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY; - public static final ForeignKey LOG__LOG_ITEM_ID_FKEY = ForeignKeys0.LOG__LOG_ITEM_ID_FKEY; - public static final ForeignKey LOG__LOG_LAUNCH_ID_FKEY = ForeignKeys0.LOG__LOG_LAUNCH_ID_FKEY; - public static final ForeignKey LOG__LOG_ATTACHMENT_ID_FKEY = ForeignKeys0.LOG__LOG_ATTACHMENT_ID_FKEY; - public static final ForeignKey OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY = ForeignKeys0.OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY; - public static final ForeignKey OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY = ForeignKeys0.OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY; - public static final ForeignKey OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY = ForeignKeys0.OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY; - public static final ForeignKey PARAMETER__PARAMETER_ITEM_ID_FKEY = ForeignKeys0.PARAMETER__PARAMETER_ITEM_ID_FKEY; - public static final ForeignKey PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY = ForeignKeys0.PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY; - public static final ForeignKey PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY = ForeignKeys0.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY; - public static final ForeignKey PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY = ForeignKeys0.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY; - public static final ForeignKey PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY = ForeignKeys0.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY; - public static final ForeignKey PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY = ForeignKeys0.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY; - public static final ForeignKey PROJECT_USER__PROJECT_USER_USER_ID_FKEY = ForeignKeys0.PROJECT_USER__PROJECT_USER_USER_ID_FKEY; - public static final ForeignKey PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY = ForeignKeys0.PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY; - public static final ForeignKey RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY = ForeignKeys0.RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY; - public static final ForeignKey SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY = ForeignKeys0.SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY; - public static final ForeignKey STATISTICS__STATISTICS_LAUNCH_ID_FKEY = ForeignKeys0.STATISTICS__STATISTICS_LAUNCH_ID_FKEY; - public static final ForeignKey STATISTICS__STATISTICS_ITEM_ID_FKEY = ForeignKeys0.STATISTICS__STATISTICS_ITEM_ID_FKEY; - public static final ForeignKey STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY = ForeignKeys0.STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY; - public static final ForeignKey TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY = ForeignKeys0.TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY; - public static final ForeignKey TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY = ForeignKeys0.TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY; - public static final ForeignKey TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY = ForeignKeys0.TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY; - public static final ForeignKey TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY = ForeignKeys0.TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY; - public static final ForeignKey USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY = ForeignKeys0.USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY; - public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY = ForeignKeys0.USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY; - public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY = ForeignKeys0.USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY; - public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY = ForeignKeys0.USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY; - public static final ForeignKey WIDGET__WIDGET_ID_FK = ForeignKeys0.WIDGET__WIDGET_ID_FK; - public static final ForeignKey WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY = ForeignKeys0.WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY; - public static final ForeignKey WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY = ForeignKeys0.WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY; - - // ------------------------------------------------------------------------- - // [#1459] distribute members to avoid static initialisers > 64kb - // ------------------------------------------------------------------------- - - private static class Identities0 { - public static Identity IDENTITY_ACTIVITY = Internal.createIdentity(JActivity.ACTIVITY, JActivity.ACTIVITY.ID); - public static Identity IDENTITY_ANALYTICS_DATA = Internal.createIdentity(JAnalyticsData.ANALYTICS_DATA, JAnalyticsData.ANALYTICS_DATA.ID); - public static Identity IDENTITY_API_KEYS = Internal.createIdentity(JApiKeys.API_KEYS, JApiKeys.API_KEYS.ID); - public static Identity IDENTITY_ATTACHMENT = Internal.createIdentity(JAttachment.ATTACHMENT, JAttachment.ATTACHMENT.ID); - public static Identity IDENTITY_ATTRIBUTE = Internal.createIdentity(JAttribute.ATTRIBUTE, JAttribute.ATTRIBUTE.ID); - public static Identity IDENTITY_CLUSTERS = Internal.createIdentity(JClusters.CLUSTERS, JClusters.CLUSTERS.ID); - public static Identity IDENTITY_FILTER_CONDITION = Internal.createIdentity(JFilterCondition.FILTER_CONDITION, JFilterCondition.FILTER_CONDITION.ID); - public static Identity IDENTITY_FILTER_SORT = Internal.createIdentity(JFilterSort.FILTER_SORT, JFilterSort.FILTER_SORT.ID); - public static Identity IDENTITY_INTEGRATION = Internal.createIdentity(JIntegration.INTEGRATION, JIntegration.INTEGRATION.ID); - public static Identity IDENTITY_INTEGRATION_TYPE = Internal.createIdentity(JIntegrationType.INTEGRATION_TYPE, JIntegrationType.INTEGRATION_TYPE.ID); - public static Identity IDENTITY_ISSUE_GROUP = Internal.createIdentity(JIssueGroup.ISSUE_GROUP, JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_ID); - public static Identity IDENTITY_ISSUE_TYPE = Internal.createIdentity(JIssueType.ISSUE_TYPE, JIssueType.ISSUE_TYPE.ID); - public static Identity IDENTITY_ITEM_ATTRIBUTE = Internal.createIdentity(JItemAttribute.ITEM_ATTRIBUTE, JItemAttribute.ITEM_ATTRIBUTE.ID); - public static Identity IDENTITY_LAUNCH = Internal.createIdentity(JLaunch.LAUNCH, JLaunch.LAUNCH.ID); - public static Identity IDENTITY_LAUNCH_ATTRIBUTE_RULES = Internal.createIdentity(JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.ID); - public static Identity IDENTITY_LAUNCH_NUMBER = Internal.createIdentity(JLaunchNumber.LAUNCH_NUMBER, JLaunchNumber.LAUNCH_NUMBER.ID); - public static Identity IDENTITY_LOG = Internal.createIdentity(JLog.LOG, JLog.LOG.ID); - public static Identity IDENTITY_OAUTH_REGISTRATION_RESTRICTION = Internal.createIdentity(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.ID); - public static Identity IDENTITY_OAUTH_REGISTRATION_SCOPE = Internal.createIdentity(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.ID); - public static Identity IDENTITY_ONBOARDING = Internal.createIdentity(JOnboarding.ONBOARDING, JOnboarding.ONBOARDING.ID); - public static Identity IDENTITY_OWNED_ENTITY = Internal.createIdentity(JOwnedEntity.OWNED_ENTITY, JOwnedEntity.OWNED_ENTITY.ID); - public static Identity IDENTITY_PATTERN_TEMPLATE = Internal.createIdentity(JPatternTemplate.PATTERN_TEMPLATE, JPatternTemplate.PATTERN_TEMPLATE.ID); - public static Identity IDENTITY_PROJECT = Internal.createIdentity(JProject.PROJECT, JProject.PROJECT.ID); - public static Identity IDENTITY_PROJECT_ATTRIBUTE = Internal.createIdentity(JProjectAttribute.PROJECT_ATTRIBUTE, JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID); - public static Identity IDENTITY_SENDER_CASE = Internal.createIdentity(JSenderCase.SENDER_CASE, JSenderCase.SENDER_CASE.ID); - public static Identity IDENTITY_SERVER_SETTINGS = Internal.createIdentity(JServerSettings.SERVER_SETTINGS, JServerSettings.SERVER_SETTINGS.ID); - public static Identity IDENTITY_STALE_MATERIALIZED_VIEW = Internal.createIdentity(JStaleMaterializedView.STALE_MATERIALIZED_VIEW, JStaleMaterializedView.STALE_MATERIALIZED_VIEW.ID); - public static Identity IDENTITY_STATISTICS = Internal.createIdentity(JStatistics.STATISTICS, JStatistics.STATISTICS.S_ID); - public static Identity IDENTITY_STATISTICS_FIELD = Internal.createIdentity(JStatisticsField.STATISTICS_FIELD, JStatisticsField.STATISTICS_FIELD.SF_ID); - public static Identity IDENTITY_TEST_ITEM = Internal.createIdentity(JTestItem.TEST_ITEM, JTestItem.TEST_ITEM.ITEM_ID); - public static Identity IDENTITY_TICKET = Internal.createIdentity(JTicket.TICKET, JTicket.TICKET.ID); - public static Identity IDENTITY_USER_PREFERENCE = Internal.createIdentity(JUserPreference.USER_PREFERENCE, JUserPreference.USER_PREFERENCE.ID); - public static Identity IDENTITY_USERS = Internal.createIdentity(JUsers.USERS, JUsers.USERS.ID); - } - - private static class UniqueKeys0 { - public static final UniqueKey ACTIVITY_PK = Internal.createUniqueKey(JActivity.ACTIVITY, "activity_pk", JActivity.ACTIVITY.ID); - public static final UniqueKey ANALYTICS_DATA_PKEY = Internal.createUniqueKey(JAnalyticsData.ANALYTICS_DATA, "analytics_data_pkey", JAnalyticsData.ANALYTICS_DATA.ID); - public static final UniqueKey API_KEYS_PKEY = Internal.createUniqueKey(JApiKeys.API_KEYS, "api_keys_pkey", JApiKeys.API_KEYS.ID); - public static final UniqueKey USERS_API_KEYS_UNIQUE = Internal.createUniqueKey(JApiKeys.API_KEYS, "users_api_keys_unique", JApiKeys.API_KEYS.NAME, JApiKeys.API_KEYS.USER_ID); - public static final UniqueKey ATTACHMENT_PK = Internal.createUniqueKey(JAttachment.ATTACHMENT, "attachment_pk", JAttachment.ATTACHMENT.ID); - public static final UniqueKey ATTACHMENT_DELETION_PKEY = Internal.createUniqueKey(JAttachmentDeletion.ATTACHMENT_DELETION, "attachment_deletion_pkey", JAttachmentDeletion.ATTACHMENT_DELETION.ID); - public static final UniqueKey ATTRIBUTE_PK = Internal.createUniqueKey(JAttribute.ATTRIBUTE, "attribute_pk", JAttribute.ATTRIBUTE.ID); - public static final UniqueKey CLUSTERS_PK = Internal.createUniqueKey(JClusters.CLUSTERS, "clusters_pk", JClusters.CLUSTERS.ID); - public static final UniqueKey INDEX_ID_LAUNCH_ID_UNQ = Internal.createUniqueKey(JClusters.CLUSTERS, "index_id_launch_id_unq", JClusters.CLUSTERS.INDEX_ID, JClusters.CLUSTERS.LAUNCH_ID); - public static final UniqueKey CLUSTER_ITEM_UNQ = Internal.createUniqueKey(JClustersTestItem.CLUSTERS_TEST_ITEM, "cluster_item_unq", JClustersTestItem.CLUSTERS_TEST_ITEM.CLUSTER_ID, JClustersTestItem.CLUSTERS_TEST_ITEM.ITEM_ID); - public static final UniqueKey DASHBOARD_PKEY = Internal.createUniqueKey(JDashboard.DASHBOARD, "dashboard_pkey", JDashboard.DASHBOARD.ID); - public static final UniqueKey DASHBOARD_WIDGET_PK = Internal.createUniqueKey(JDashboardWidget.DASHBOARD_WIDGET, "dashboard_widget_pk", JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_ID); - public static final UniqueKey WIDGET_ON_DASHBOARD_UNQ = Internal.createUniqueKey(JDashboardWidget.DASHBOARD_WIDGET, "widget_on_dashboard_unq", JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_NAME, JDashboardWidget.DASHBOARD_WIDGET.WIDGET_OWNER); - public static final UniqueKey FILTER_PKEY = Internal.createUniqueKey(JFilter.FILTER, "filter_pkey", JFilter.FILTER.ID); - public static final UniqueKey FILTER_CONDITION_PK = Internal.createUniqueKey(JFilterCondition.FILTER_CONDITION, "filter_condition_pk", JFilterCondition.FILTER_CONDITION.ID); - public static final UniqueKey FILTER_SORT_PK = Internal.createUniqueKey(JFilterSort.FILTER_SORT, "filter_sort_pk", JFilterSort.FILTER_SORT.ID); - public static final UniqueKey INTEGRATION_PK = Internal.createUniqueKey(JIntegration.INTEGRATION, "integration_pk", JIntegration.INTEGRATION.ID); - public static final UniqueKey INTEGRATION_TYPE_PK = Internal.createUniqueKey(JIntegrationType.INTEGRATION_TYPE, "integration_type_pk", JIntegrationType.INTEGRATION_TYPE.ID); - public static final UniqueKey INTEGRATION_TYPE_NAME_KEY = Internal.createUniqueKey(JIntegrationType.INTEGRATION_TYPE, "integration_type_name_key", JIntegrationType.INTEGRATION_TYPE.NAME); - public static final UniqueKey ISSUE_PK = Internal.createUniqueKey(JIssue.ISSUE, "issue_pk", JIssue.ISSUE.ISSUE_ID); - public static final UniqueKey ISSUE_GROUP_PK = Internal.createUniqueKey(JIssueGroup.ISSUE_GROUP, "issue_group_pk", JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_ID); - public static final UniqueKey ISSUE_TICKET_PK = Internal.createUniqueKey(JIssueTicket.ISSUE_TICKET, "issue_ticket_pk", JIssueTicket.ISSUE_TICKET.ISSUE_ID, JIssueTicket.ISSUE_TICKET.TICKET_ID); - public static final UniqueKey ISSUE_TYPE_PK = Internal.createUniqueKey(JIssueType.ISSUE_TYPE, "issue_type_pk", JIssueType.ISSUE_TYPE.ID); - public static final UniqueKey ISSUE_TYPE_LOCATOR_KEY = Internal.createUniqueKey(JIssueType.ISSUE_TYPE, "issue_type_locator_key", JIssueType.ISSUE_TYPE.LOCATOR); - public static final UniqueKey ISSUE_TYPE_PROJECT_PK = Internal.createUniqueKey(JIssueTypeProject.ISSUE_TYPE_PROJECT, "issue_type_project_pk", JIssueTypeProject.ISSUE_TYPE_PROJECT.PROJECT_ID, JIssueTypeProject.ISSUE_TYPE_PROJECT.ISSUE_TYPE_ID); - public static final UniqueKey ITEM_ATTRIBUTE_PK = Internal.createUniqueKey(JItemAttribute.ITEM_ATTRIBUTE, "item_attribute_pk", JItemAttribute.ITEM_ATTRIBUTE.ID); - public static final UniqueKey LAUNCH_PK = Internal.createUniqueKey(JLaunch.LAUNCH, "launch_pk", JLaunch.LAUNCH.ID); - public static final UniqueKey LAUNCH_UUID_KEY = Internal.createUniqueKey(JLaunch.LAUNCH, "launch_uuid_key", JLaunch.LAUNCH.UUID); - public static final UniqueKey UNQ_NAME_NUMBER = Internal.createUniqueKey(JLaunch.LAUNCH, "unq_name_number", JLaunch.LAUNCH.NAME, JLaunch.LAUNCH.NUMBER, JLaunch.LAUNCH.PROJECT_ID); - public static final UniqueKey LAUNCH_ATTRIBUTE_RULES_PK = Internal.createUniqueKey(JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, "launch_attribute_rules_pk", JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.ID); - public static final UniqueKey LAUNCH_NUMBER_PK = Internal.createUniqueKey(JLaunchNumber.LAUNCH_NUMBER, "launch_number_pk", JLaunchNumber.LAUNCH_NUMBER.ID); - public static final UniqueKey UNQ_PROJECT_NAME = Internal.createUniqueKey(JLaunchNumber.LAUNCH_NUMBER, "unq_project_name", JLaunchNumber.LAUNCH_NUMBER.PROJECT_ID, JLaunchNumber.LAUNCH_NUMBER.LAUNCH_NAME); - public static final UniqueKey LOG_PK = Internal.createUniqueKey(JLog.LOG, "log_pk", JLog.LOG.ID); - public static final UniqueKey OAUTH_REGISTRATION_PKEY = Internal.createUniqueKey(JOauthRegistration.OAUTH_REGISTRATION, "oauth_registration_pkey", JOauthRegistration.OAUTH_REGISTRATION.ID); - public static final UniqueKey OAUTH_REGISTRATION_CLIENT_ID_KEY = Internal.createUniqueKey(JOauthRegistration.OAUTH_REGISTRATION, "oauth_registration_client_id_key", JOauthRegistration.OAUTH_REGISTRATION.CLIENT_ID); - public static final UniqueKey OAUTH_REGISTRATION_RESTRICTION_PK = Internal.createUniqueKey(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, "oauth_registration_restriction_pk", JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.ID); - public static final UniqueKey OAUTH_REGISTRATION_RESTRICTION_UNIQUE = Internal.createUniqueKey(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, "oauth_registration_restriction_unique", JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.TYPE, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.VALUE, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.OAUTH_REGISTRATION_FK); - public static final UniqueKey OAUTH_REGISTRATION_SCOPE_PK = Internal.createUniqueKey(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, "oauth_registration_scope_pk", JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.ID); - public static final UniqueKey OAUTH_REGISTRATION_SCOPE_UNIQUE = Internal.createUniqueKey(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, "oauth_registration_scope_unique", JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.SCOPE, JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.OAUTH_REGISTRATION_FK); - public static final UniqueKey ONBOARDING_PK = Internal.createUniqueKey(JOnboarding.ONBOARDING, "onboarding_pk", JOnboarding.ONBOARDING.ID); - public static final UniqueKey SHAREABLE_PK = Internal.createUniqueKey(JOwnedEntity.OWNED_ENTITY, "shareable_pk", JOwnedEntity.OWNED_ENTITY.ID); - public static final UniqueKey PATTERN_TEMPLATE_PK = Internal.createUniqueKey(JPatternTemplate.PATTERN_TEMPLATE, "pattern_template_pk", JPatternTemplate.PATTERN_TEMPLATE.ID); - public static final UniqueKey UNQ_NAME_PROJECTID = Internal.createUniqueKey(JPatternTemplate.PATTERN_TEMPLATE, "unq_name_projectid", JPatternTemplate.PATTERN_TEMPLATE.NAME, JPatternTemplate.PATTERN_TEMPLATE.PROJECT_ID); - public static final UniqueKey PATTERN_ITEM_UNQ = Internal.createUniqueKey(JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, "pattern_item_unq", JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.PATTERN_ID, JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID); - public static final UniqueKey PROJECT_PK = Internal.createUniqueKey(JProject.PROJECT, "project_pk", JProject.PROJECT.ID); - public static final UniqueKey PROJECT_NAME_KEY = Internal.createUniqueKey(JProject.PROJECT, "project_name_key", JProject.PROJECT.NAME); - public static final UniqueKey UNIQUE_ATTRIBUTE_PER_PROJECT = Internal.createUniqueKey(JProjectAttribute.PROJECT_ATTRIBUTE, "unique_attribute_per_project", JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID, JProjectAttribute.PROJECT_ATTRIBUTE.PROJECT_ID); - public static final UniqueKey USERS_PROJECT_PK = Internal.createUniqueKey(JProjectUser.PROJECT_USER, "users_project_pk", JProjectUser.PROJECT_USER.USER_ID, JProjectUser.PROJECT_USER.PROJECT_ID); - public static final UniqueKey RESTORE_PASSWORD_BID_PK = Internal.createUniqueKey(JRestorePasswordBid.RESTORE_PASSWORD_BID, "restore_password_bid_pk", JRestorePasswordBid.RESTORE_PASSWORD_BID.UUID); - public static final UniqueKey RESTORE_PASSWORD_BID_EMAIL_KEY = Internal.createUniqueKey(JRestorePasswordBid.RESTORE_PASSWORD_BID, "restore_password_bid_email_key", JRestorePasswordBid.RESTORE_PASSWORD_BID.EMAIL); - public static final UniqueKey SENDER_CASE_PK = Internal.createUniqueKey(JSenderCase.SENDER_CASE, "sender_case_pk", JSenderCase.SENDER_CASE.ID); - public static final UniqueKey SERVER_SETTINGS_ID = Internal.createUniqueKey(JServerSettings.SERVER_SETTINGS, "server_settings_id", JServerSettings.SERVER_SETTINGS.ID); - public static final UniqueKey SERVER_SETTINGS_KEY_KEY = Internal.createUniqueKey(JServerSettings.SERVER_SETTINGS, "server_settings_key_key", JServerSettings.SERVER_SETTINGS.KEY); - public static final UniqueKey SHEDLOCK_PKEY = Internal.createUniqueKey(JShedlock.SHEDLOCK, "shedlock_pkey", JShedlock.SHEDLOCK.NAME); - public static final UniqueKey STALE_MATERIALIZED_VIEW_PKEY = Internal.createUniqueKey(JStaleMaterializedView.STALE_MATERIALIZED_VIEW, "stale_materialized_view_pkey", JStaleMaterializedView.STALE_MATERIALIZED_VIEW.ID); - public static final UniqueKey STALE_MATERIALIZED_VIEW_NAME_KEY = Internal.createUniqueKey(JStaleMaterializedView.STALE_MATERIALIZED_VIEW, "stale_materialized_view_name_key", JStaleMaterializedView.STALE_MATERIALIZED_VIEW.NAME); - public static final UniqueKey STATISTICS_PK = Internal.createUniqueKey(JStatistics.STATISTICS, "statistics_pk", JStatistics.STATISTICS.S_ID); - public static final UniqueKey UNIQUE_STATS_LAUNCH = Internal.createUniqueKey(JStatistics.STATISTICS, "unique_stats_launch", JStatistics.STATISTICS.STATISTICS_FIELD_ID, JStatistics.STATISTICS.LAUNCH_ID); - public static final UniqueKey UNIQUE_STATS_ITEM = Internal.createUniqueKey(JStatistics.STATISTICS, "unique_stats_item", JStatistics.STATISTICS.STATISTICS_FIELD_ID, JStatistics.STATISTICS.ITEM_ID); - public static final UniqueKey STATISTICS_FIELD_PK = Internal.createUniqueKey(JStatisticsField.STATISTICS_FIELD, "statistics_field_pk", JStatisticsField.STATISTICS_FIELD.SF_ID); - public static final UniqueKey STATISTICS_FIELD_NAME_KEY = Internal.createUniqueKey(JStatisticsField.STATISTICS_FIELD, "statistics_field_name_key", JStatisticsField.STATISTICS_FIELD.NAME); - public static final UniqueKey TEST_ITEM_PK = Internal.createUniqueKey(JTestItem.TEST_ITEM, "test_item_pk", JTestItem.TEST_ITEM.ITEM_ID); - public static final UniqueKey TEST_ITEM_UUID_KEY = Internal.createUniqueKey(JTestItem.TEST_ITEM, "test_item_uuid_key", JTestItem.TEST_ITEM.UUID); - public static final UniqueKey TEST_ITEM_RESULTS_PK = Internal.createUniqueKey(JTestItemResults.TEST_ITEM_RESULTS, "test_item_results_pk", JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID); - public static final UniqueKey TICKET_PK = Internal.createUniqueKey(JTicket.TICKET, "ticket_pk", JTicket.TICKET.ID); - public static final UniqueKey USER_CREATION_BID_PK = Internal.createUniqueKey(JUserCreationBid.USER_CREATION_BID, "user_creation_bid_pk", JUserCreationBid.USER_CREATION_BID.UUID); - public static final UniqueKey USER_PREFERENCE_PK = Internal.createUniqueKey(JUserPreference.USER_PREFERENCE, "user_preference_pk", JUserPreference.USER_PREFERENCE.ID); - public static final UniqueKey USER_PREFERENCE_UQ = Internal.createUniqueKey(JUserPreference.USER_PREFERENCE, "user_preference_uq", JUserPreference.USER_PREFERENCE.PROJECT_ID, JUserPreference.USER_PREFERENCE.USER_ID, JUserPreference.USER_PREFERENCE.FILTER_ID); - public static final UniqueKey USERS_PK = Internal.createUniqueKey(JUsers.USERS, "users_pk", JUsers.USERS.ID); - public static final UniqueKey USERS_LOGIN_KEY = Internal.createUniqueKey(JUsers.USERS, "users_login_key", JUsers.USERS.LOGIN); - public static final UniqueKey USERS_EMAIL_KEY = Internal.createUniqueKey(JUsers.USERS, "users_email_key", JUsers.USERS.EMAIL); - public static final UniqueKey WIDGET_PKEY = Internal.createUniqueKey(JWidget.WIDGET, "widget_pkey", JWidget.WIDGET.ID); - public static final UniqueKey WIDGET_FILTER_PK = Internal.createUniqueKey(JWidgetFilter.WIDGET_FILTER, "widget_filter_pk", JWidgetFilter.WIDGET_FILTER.WIDGET_ID, JWidgetFilter.WIDGET_FILTER.FILTER_ID); - } - - private static class ForeignKeys0 { - public static final ForeignKey ACTIVITY__ACTIVITY_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JActivity.ACTIVITY, "activity__activity_project_id_fkey", JActivity.ACTIVITY.PROJECT_ID); - public static final ForeignKey API_KEYS__API_KEYS_USER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.USERS_PK, JApiKeys.API_KEYS, "api_keys__api_keys_user_id_fkey", JApiKeys.API_KEYS.USER_ID); - public static final ForeignKey CONTENT_FIELD__CONTENT_FIELD_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.WIDGET_PKEY, JContentField.CONTENT_FIELD, "content_field__content_field_id_fkey", JContentField.CONTENT_FIELD.ID); - public static final ForeignKey DASHBOARD__DASHBOARD_ID_FK = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.SHAREABLE_PK, JDashboard.DASHBOARD, "dashboard__dashboard_id_fk", JDashboard.DASHBOARD.ID); - public static final ForeignKey DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.DASHBOARD_PKEY, JDashboardWidget.DASHBOARD_WIDGET, "dashboard_widget__dashboard_widget_dashboard_id_fkey", JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID); - public static final ForeignKey DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.WIDGET_PKEY, JDashboardWidget.DASHBOARD_WIDGET, "dashboard_widget__dashboard_widget_widget_id_fkey", JDashboardWidget.DASHBOARD_WIDGET.WIDGET_ID); - public static final ForeignKey FILTER__FILTER_ID_FK = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.SHAREABLE_PK, JFilter.FILTER, "filter__filter_id_fk", JFilter.FILTER.ID); - public static final ForeignKey FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.FILTER_PKEY, JFilterCondition.FILTER_CONDITION, "filter_condition__filter_condition_filter_id_fkey", JFilterCondition.FILTER_CONDITION.FILTER_ID); - public static final ForeignKey FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.FILTER_PKEY, JFilterSort.FILTER_SORT, "filter_sort__filter_sort_filter_id_fkey", JFilterSort.FILTER_SORT.FILTER_ID); - public static final ForeignKey INTEGRATION__INTEGRATION_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JIntegration.INTEGRATION, "integration__integration_project_id_fkey", JIntegration.INTEGRATION.PROJECT_ID); - public static final ForeignKey INTEGRATION__INTEGRATION_TYPE_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.INTEGRATION_TYPE_PK, JIntegration.INTEGRATION, "integration__integration_type_fkey", JIntegration.INTEGRATION.TYPE); - public static final ForeignKey ISSUE__ISSUE_ISSUE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_RESULTS_PK, JIssue.ISSUE, "issue__issue_issue_id_fkey", JIssue.ISSUE.ISSUE_ID); - public static final ForeignKey ISSUE__ISSUE_ISSUE_TYPE_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.ISSUE_TYPE_PK, JIssue.ISSUE, "issue__issue_issue_type_fkey", JIssue.ISSUE.ISSUE_TYPE); - public static final ForeignKey ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.ISSUE_PK, JIssueTicket.ISSUE_TICKET, "issue_ticket__issue_ticket_issue_id_fkey", JIssueTicket.ISSUE_TICKET.ISSUE_ID); - public static final ForeignKey ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TICKET_PK, JIssueTicket.ISSUE_TICKET, "issue_ticket__issue_ticket_ticket_id_fkey", JIssueTicket.ISSUE_TICKET.TICKET_ID); - public static final ForeignKey ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.ISSUE_GROUP_PK, JIssueType.ISSUE_TYPE, "issue_type__issue_type_issue_group_id_fkey", JIssueType.ISSUE_TYPE.ISSUE_GROUP_ID); - public static final ForeignKey ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JIssueTypeProject.ISSUE_TYPE_PROJECT, "issue_type_project__issue_type_project_project_id_fkey", JIssueTypeProject.ISSUE_TYPE_PROJECT.PROJECT_ID); - public static final ForeignKey ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.ISSUE_TYPE_PK, JIssueTypeProject.ISSUE_TYPE_PROJECT, "issue_type_project__issue_type_project_issue_type_id_fkey", JIssueTypeProject.ISSUE_TYPE_PROJECT.ISSUE_TYPE_ID); - public static final ForeignKey ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JItemAttribute.ITEM_ATTRIBUTE, "item_attribute__item_attribute_item_id_fkey", JItemAttribute.ITEM_ATTRIBUTE.ITEM_ID); - public static final ForeignKey ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.LAUNCH_PK, JItemAttribute.ITEM_ATTRIBUTE, "item_attribute__item_attribute_launch_id_fkey", JItemAttribute.ITEM_ATTRIBUTE.LAUNCH_ID); - public static final ForeignKey LAUNCH__LAUNCH_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JLaunch.LAUNCH, "launch__launch_project_id_fkey", JLaunch.LAUNCH.PROJECT_ID); - public static final ForeignKey LAUNCH__LAUNCH_USER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.USERS_PK, JLaunch.LAUNCH, "launch__launch_user_id_fkey", JLaunch.LAUNCH.USER_ID); - public static final ForeignKey LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.SENDER_CASE_PK, JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, "launch_attribute_rules__launch_attribute_rules_sender_case_id_fkey", JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.SENDER_CASE_ID); - public static final ForeignKey LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.SENDER_CASE_PK, JLaunchNames.LAUNCH_NAMES, "launch_names__launch_names_sender_case_id_fkey", JLaunchNames.LAUNCH_NAMES.SENDER_CASE_ID); - public static final ForeignKey LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JLaunchNumber.LAUNCH_NUMBER, "launch_number__launch_number_project_id_fkey", JLaunchNumber.LAUNCH_NUMBER.PROJECT_ID); - public static final ForeignKey LOG__LOG_ITEM_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JLog.LOG, "log__log_item_id_fkey", JLog.LOG.ITEM_ID); - public static final ForeignKey LOG__LOG_LAUNCH_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.LAUNCH_PK, JLog.LOG, "log__log_launch_id_fkey", JLog.LOG.LAUNCH_ID); - public static final ForeignKey LOG__LOG_ATTACHMENT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.ATTACHMENT_PK, JLog.LOG, "log__log_attachment_id_fkey", JLog.LOG.ATTACHMENT_ID); - public static final ForeignKey OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.OAUTH_REGISTRATION_PKEY, JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, "oauth_registration_restriction__oauth_registration_restriction_oauth_registration_fk_fkey", JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.OAUTH_REGISTRATION_FK); - public static final ForeignKey OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.OAUTH_REGISTRATION_PKEY, JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, "oauth_registration_scope__oauth_registration_scope_oauth_registration_fk_fkey", JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.OAUTH_REGISTRATION_FK); - public static final ForeignKey OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JOwnedEntity.OWNED_ENTITY, "owned_entity__shareable_entity_project_id_fkey", JOwnedEntity.OWNED_ENTITY.PROJECT_ID); - public static final ForeignKey PARAMETER__PARAMETER_ITEM_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JParameter.PARAMETER, "parameter__parameter_item_id_fkey", JParameter.PARAMETER.ITEM_ID); - public static final ForeignKey PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JPatternTemplate.PATTERN_TEMPLATE, "pattern_template__pattern_template_project_id_fkey", JPatternTemplate.PATTERN_TEMPLATE.PROJECT_ID); - public static final ForeignKey PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PATTERN_TEMPLATE_PK, JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, "pattern_template_test_item__pattern_template_test_item_pattern_id_fkey", JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.PATTERN_ID); - public static final ForeignKey PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, "pattern_template_test_item__pattern_template_test_item_item_id_fkey", JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID); - public static final ForeignKey PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.ATTRIBUTE_PK, JProjectAttribute.PROJECT_ATTRIBUTE, "project_attribute__project_attribute_attribute_id_fkey", JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID); - public static final ForeignKey PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JProjectAttribute.PROJECT_ATTRIBUTE, "project_attribute__project_attribute_project_id_fkey", JProjectAttribute.PROJECT_ATTRIBUTE.PROJECT_ID); - public static final ForeignKey PROJECT_USER__PROJECT_USER_USER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.USERS_PK, JProjectUser.PROJECT_USER, "project_user__project_user_user_id_fkey", JProjectUser.PROJECT_USER.USER_ID); - public static final ForeignKey PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JProjectUser.PROJECT_USER, "project_user__project_user_project_id_fkey", JProjectUser.PROJECT_USER.PROJECT_ID); - public static final ForeignKey RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.SENDER_CASE_PK, JRecipients.RECIPIENTS, "recipients__recipients_sender_case_id_fkey", JRecipients.RECIPIENTS.SENDER_CASE_ID); - public static final ForeignKey SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JSenderCase.SENDER_CASE, "sender_case__sender_case_project_id_fkey", JSenderCase.SENDER_CASE.PROJECT_ID); - public static final ForeignKey STATISTICS__STATISTICS_LAUNCH_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.LAUNCH_PK, JStatistics.STATISTICS, "statistics__statistics_launch_id_fkey", JStatistics.STATISTICS.LAUNCH_ID); - public static final ForeignKey STATISTICS__STATISTICS_ITEM_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JStatistics.STATISTICS, "statistics__statistics_item_id_fkey", JStatistics.STATISTICS.ITEM_ID); - public static final ForeignKey STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.STATISTICS_FIELD_PK, JStatistics.STATISTICS, "statistics__statistics_statistics_field_id_fkey", JStatistics.STATISTICS.STATISTICS_FIELD_ID); - public static final ForeignKey TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JTestItem.TEST_ITEM, "test_item__test_item_parent_id_fkey", JTestItem.TEST_ITEM.PARENT_ID); - public static final ForeignKey TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JTestItem.TEST_ITEM, "test_item__test_item_retry_of_fkey", JTestItem.TEST_ITEM.RETRY_OF); - public static final ForeignKey TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.LAUNCH_PK, JTestItem.TEST_ITEM, "test_item__test_item_launch_id_fkey", JTestItem.TEST_ITEM.LAUNCH_ID); - public static final ForeignKey TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.TEST_ITEM_PK, JTestItemResults.TEST_ITEM_RESULTS, "test_item_results__test_item_results_result_id_fkey", JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID); - public static final ForeignKey USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.USERS_PK, JUserCreationBid.USER_CREATION_BID, "user_creation_bid__user_creation_bid_inviting_user_id_fkey", JUserCreationBid.USER_CREATION_BID.INVITING_USER_ID); - public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.PROJECT_PK, JUserPreference.USER_PREFERENCE, "user_preference__user_preference_project_id_fkey", JUserPreference.USER_PREFERENCE.PROJECT_ID); - public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.USERS_PK, JUserPreference.USER_PREFERENCE, "user_preference__user_preference_user_id_fkey", JUserPreference.USER_PREFERENCE.USER_ID); - public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.FILTER_PKEY, JUserPreference.USER_PREFERENCE, "user_preference__user_preference_filter_id_fkey", JUserPreference.USER_PREFERENCE.FILTER_ID); - public static final ForeignKey WIDGET__WIDGET_ID_FK = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.SHAREABLE_PK, JWidget.WIDGET, "widget__widget_id_fk", JWidget.WIDGET.ID); - public static final ForeignKey WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.WIDGET_PKEY, JWidgetFilter.WIDGET_FILTER, "widget_filter__widget_filter_widget_id_fkey", JWidgetFilter.WIDGET_FILTER.WIDGET_ID); - public static final ForeignKey WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY = Internal.createForeignKey(com.epam.ta.reportportal.jooq.Keys.FILTER_PKEY, JWidgetFilter.WIDGET_FILTER, "widget_filter__widget_filter_filter_id_fkey", JWidgetFilter.WIDGET_FILTER.FILTER_ID); - } + public static final ForeignKey ACTIVITY__ACTIVITY_PROJECT_ID_FKEY = Internal.createForeignKey(JActivity.ACTIVITY, DSL.name("activity_project_id_fkey"), new TableField[] { JActivity.ACTIVITY.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey API_KEYS__API_KEYS_USER_ID_FKEY = Internal.createForeignKey(JApiKeys.API_KEYS, DSL.name("api_keys_user_id_fkey"), new TableField[] { JApiKeys.API_KEYS.USER_ID }, Keys.USERS_PK, new TableField[] { JUsers.USERS.ID }, true); + public static final ForeignKey CONTENT_FIELD__CONTENT_FIELD_ID_FKEY = Internal.createForeignKey(JContentField.CONTENT_FIELD, DSL.name("content_field_id_fkey"), new TableField[] { JContentField.CONTENT_FIELD.ID }, Keys.WIDGET_PKEY, new TableField[] { JWidget.WIDGET.ID }, true); + public static final ForeignKey DASHBOARD__DASHBOARD_ID_FK = Internal.createForeignKey(JDashboard.DASHBOARD, DSL.name("dashboard_id_fk"), new TableField[] { JDashboard.DASHBOARD.ID }, Keys.SHAREABLE_PK, new TableField[] { JOwnedEntity.OWNED_ENTITY.ID }, true); + public static final ForeignKey DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY = Internal.createForeignKey(JDashboardWidget.DASHBOARD_WIDGET, DSL.name("dashboard_widget_dashboard_id_fkey"), new TableField[] { JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID }, Keys.DASHBOARD_PKEY, new TableField[] { JDashboard.DASHBOARD.ID }, true); + public static final ForeignKey DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY = Internal.createForeignKey(JDashboardWidget.DASHBOARD_WIDGET, DSL.name("dashboard_widget_widget_id_fkey"), new TableField[] { JDashboardWidget.DASHBOARD_WIDGET.WIDGET_ID }, Keys.WIDGET_PKEY, new TableField[] { JWidget.WIDGET.ID }, true); + public static final ForeignKey FILTER__FILTER_ID_FK = Internal.createForeignKey(JFilter.FILTER, DSL.name("filter_id_fk"), new TableField[] { JFilter.FILTER.ID }, Keys.SHAREABLE_PK, new TableField[] { JOwnedEntity.OWNED_ENTITY.ID }, true); + public static final ForeignKey FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY = Internal.createForeignKey(JFilterCondition.FILTER_CONDITION, DSL.name("filter_condition_filter_id_fkey"), new TableField[] { JFilterCondition.FILTER_CONDITION.FILTER_ID }, Keys.FILTER_PKEY, new TableField[] { JFilter.FILTER.ID }, true); + public static final ForeignKey FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY = Internal.createForeignKey(JFilterSort.FILTER_SORT, DSL.name("filter_sort_filter_id_fkey"), new TableField[] { JFilterSort.FILTER_SORT.FILTER_ID }, Keys.FILTER_PKEY, new TableField[] { JFilter.FILTER.ID }, true); + public static final ForeignKey INTEGRATION__INTEGRATION_PROJECT_ID_FKEY = Internal.createForeignKey(JIntegration.INTEGRATION, DSL.name("integration_project_id_fkey"), new TableField[] { JIntegration.INTEGRATION.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey INTEGRATION__INTEGRATION_TYPE_FKEY = Internal.createForeignKey(JIntegration.INTEGRATION, DSL.name("integration_type_fkey"), new TableField[] { JIntegration.INTEGRATION.TYPE }, Keys.INTEGRATION_TYPE_PK, new TableField[] { JIntegrationType.INTEGRATION_TYPE.ID }, true); + public static final ForeignKey ISSUE__ISSUE_ISSUE_ID_FKEY = Internal.createForeignKey(JIssue.ISSUE, DSL.name("issue_issue_id_fkey"), new TableField[] { JIssue.ISSUE.ISSUE_ID }, Keys.TEST_ITEM_RESULTS_PK, new TableField[] { JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID }, true); + public static final ForeignKey ISSUE__ISSUE_ISSUE_TYPE_FKEY = Internal.createForeignKey(JIssue.ISSUE, DSL.name("issue_issue_type_fkey"), new TableField[] { JIssue.ISSUE.ISSUE_TYPE }, Keys.ISSUE_TYPE_PK, new TableField[] { JIssueType.ISSUE_TYPE.ID }, true); + public static final ForeignKey ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY = Internal.createForeignKey(JIssueTicket.ISSUE_TICKET, DSL.name("issue_ticket_issue_id_fkey"), new TableField[] { JIssueTicket.ISSUE_TICKET.ISSUE_ID }, Keys.ISSUE_PK, new TableField[] { JIssue.ISSUE.ISSUE_ID }, true); + public static final ForeignKey ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY = Internal.createForeignKey(JIssueTicket.ISSUE_TICKET, DSL.name("issue_ticket_ticket_id_fkey"), new TableField[] { JIssueTicket.ISSUE_TICKET.TICKET_ID }, Keys.TICKET_PK, new TableField[] { JTicket.TICKET.ID }, true); + public static final ForeignKey ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY = Internal.createForeignKey(JIssueType.ISSUE_TYPE, DSL.name("issue_type_issue_group_id_fkey"), new TableField[] { JIssueType.ISSUE_TYPE.ISSUE_GROUP_ID }, Keys.ISSUE_GROUP_PK, new TableField[] { JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_ID }, true); + public static final ForeignKey ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY = Internal.createForeignKey(JIssueTypeProject.ISSUE_TYPE_PROJECT, DSL.name("issue_type_project_issue_type_id_fkey"), new TableField[] { JIssueTypeProject.ISSUE_TYPE_PROJECT.ISSUE_TYPE_ID }, Keys.ISSUE_TYPE_PK, new TableField[] { JIssueType.ISSUE_TYPE.ID }, true); + public static final ForeignKey ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY = Internal.createForeignKey(JIssueTypeProject.ISSUE_TYPE_PROJECT, DSL.name("issue_type_project_project_id_fkey"), new TableField[] { JIssueTypeProject.ISSUE_TYPE_PROJECT.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY = Internal.createForeignKey(JItemAttribute.ITEM_ATTRIBUTE, DSL.name("item_attribute_item_id_fkey"), new TableField[] { JItemAttribute.ITEM_ATTRIBUTE.ITEM_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY = Internal.createForeignKey(JItemAttribute.ITEM_ATTRIBUTE, DSL.name("item_attribute_launch_id_fkey"), new TableField[] { JItemAttribute.ITEM_ATTRIBUTE.LAUNCH_ID }, Keys.LAUNCH_PK, new TableField[] { JLaunch.LAUNCH.ID }, true); + public static final ForeignKey LAUNCH__LAUNCH_PROJECT_ID_FKEY = Internal.createForeignKey(JLaunch.LAUNCH, DSL.name("launch_project_id_fkey"), new TableField[] { JLaunch.LAUNCH.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey LAUNCH__LAUNCH_USER_ID_FKEY = Internal.createForeignKey(JLaunch.LAUNCH, DSL.name("launch_user_id_fkey"), new TableField[] { JLaunch.LAUNCH.USER_ID }, Keys.USERS_PK, new TableField[] { JUsers.USERS.ID }, true); + public static final ForeignKey LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY = Internal.createForeignKey(JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES, DSL.name("launch_attribute_rules_sender_case_id_fkey"), new TableField[] { JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.SENDER_CASE_ID }, Keys.SENDER_CASE_PK, new TableField[] { JSenderCase.SENDER_CASE.ID }, true); + public static final ForeignKey LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY = Internal.createForeignKey(JLaunchNames.LAUNCH_NAMES, DSL.name("launch_names_sender_case_id_fkey"), new TableField[] { JLaunchNames.LAUNCH_NAMES.SENDER_CASE_ID }, Keys.SENDER_CASE_PK, new TableField[] { JSenderCase.SENDER_CASE.ID }, true); + public static final ForeignKey LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY = Internal.createForeignKey(JLaunchNumber.LAUNCH_NUMBER, DSL.name("launch_number_project_id_fkey"), new TableField[] { JLaunchNumber.LAUNCH_NUMBER.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey LOG__LOG_ATTACHMENT_ID_FKEY = Internal.createForeignKey(JLog.LOG, DSL.name("log_attachment_id_fkey"), new TableField[] { JLog.LOG.ATTACHMENT_ID }, Keys.ATTACHMENT_PK, new TableField[] { JAttachment.ATTACHMENT.ID }, true); + public static final ForeignKey LOG__LOG_ITEM_ID_FKEY = Internal.createForeignKey(JLog.LOG, DSL.name("log_item_id_fkey"), new TableField[] { JLog.LOG.ITEM_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey LOG__LOG_LAUNCH_ID_FKEY = Internal.createForeignKey(JLog.LOG, DSL.name("log_launch_id_fkey"), new TableField[] { JLog.LOG.LAUNCH_ID }, Keys.LAUNCH_PK, new TableField[] { JLaunch.LAUNCH.ID }, true); + public static final ForeignKey OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY = Internal.createForeignKey(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION, DSL.name("oauth_registration_restriction_oauth_registration_fk_fkey"), new TableField[] { JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.OAUTH_REGISTRATION_FK }, Keys.OAUTH_REGISTRATION_PKEY, new TableField[] { JOauthRegistration.OAUTH_REGISTRATION.ID }, true); + public static final ForeignKey OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY = Internal.createForeignKey(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE, DSL.name("oauth_registration_scope_oauth_registration_fk_fkey"), new TableField[] { JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.OAUTH_REGISTRATION_FK }, Keys.OAUTH_REGISTRATION_PKEY, new TableField[] { JOauthRegistration.OAUTH_REGISTRATION.ID }, true); + public static final ForeignKey OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY = Internal.createForeignKey(JOwnedEntity.OWNED_ENTITY, DSL.name("shareable_entity_project_id_fkey"), new TableField[] { JOwnedEntity.OWNED_ENTITY.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey PARAMETER__PARAMETER_ITEM_ID_FKEY = Internal.createForeignKey(JParameter.PARAMETER, DSL.name("parameter_item_id_fkey"), new TableField[] { JParameter.PARAMETER.ITEM_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY = Internal.createForeignKey(JPatternTemplate.PATTERN_TEMPLATE, DSL.name("pattern_template_project_id_fkey"), new TableField[] { JPatternTemplate.PATTERN_TEMPLATE.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY = Internal.createForeignKey(JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, DSL.name("pattern_template_test_item_item_id_fkey"), new TableField[] { JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY = Internal.createForeignKey(JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM, DSL.name("pattern_template_test_item_pattern_id_fkey"), new TableField[] { JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.PATTERN_ID }, Keys.PATTERN_TEMPLATE_PK, new TableField[] { JPatternTemplate.PATTERN_TEMPLATE.ID }, true); + public static final ForeignKey PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY = Internal.createForeignKey(JProjectAttribute.PROJECT_ATTRIBUTE, DSL.name("project_attribute_attribute_id_fkey"), new TableField[] { JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID }, Keys.ATTRIBUTE_PK, new TableField[] { JAttribute.ATTRIBUTE.ID }, true); + public static final ForeignKey PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY = Internal.createForeignKey(JProjectAttribute.PROJECT_ATTRIBUTE, DSL.name("project_attribute_project_id_fkey"), new TableField[] { JProjectAttribute.PROJECT_ATTRIBUTE.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY = Internal.createForeignKey(JProjectUser.PROJECT_USER, DSL.name("project_user_project_id_fkey"), new TableField[] { JProjectUser.PROJECT_USER.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey PROJECT_USER__PROJECT_USER_USER_ID_FKEY = Internal.createForeignKey(JProjectUser.PROJECT_USER, DSL.name("project_user_user_id_fkey"), new TableField[] { JProjectUser.PROJECT_USER.USER_ID }, Keys.USERS_PK, new TableField[] { JUsers.USERS.ID }, true); + public static final ForeignKey RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY = Internal.createForeignKey(JRecipients.RECIPIENTS, DSL.name("recipients_sender_case_id_fkey"), new TableField[] { JRecipients.RECIPIENTS.SENDER_CASE_ID }, Keys.SENDER_CASE_PK, new TableField[] { JSenderCase.SENDER_CASE.ID }, true); + public static final ForeignKey SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY = Internal.createForeignKey(JSenderCase.SENDER_CASE, DSL.name("sender_case_project_id_fkey"), new TableField[] { JSenderCase.SENDER_CASE.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey STATISTICS__STATISTICS_ITEM_ID_FKEY = Internal.createForeignKey(JStatistics.STATISTICS, DSL.name("statistics_item_id_fkey"), new TableField[] { JStatistics.STATISTICS.ITEM_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey STATISTICS__STATISTICS_LAUNCH_ID_FKEY = Internal.createForeignKey(JStatistics.STATISTICS, DSL.name("statistics_launch_id_fkey"), new TableField[] { JStatistics.STATISTICS.LAUNCH_ID }, Keys.LAUNCH_PK, new TableField[] { JLaunch.LAUNCH.ID }, true); + public static final ForeignKey STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY = Internal.createForeignKey(JStatistics.STATISTICS, DSL.name("statistics_statistics_field_id_fkey"), new TableField[] { JStatistics.STATISTICS.STATISTICS_FIELD_ID }, Keys.STATISTICS_FIELD_PK, new TableField[] { JStatisticsField.STATISTICS_FIELD.SF_ID }, true); + public static final ForeignKey TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY = Internal.createForeignKey(JTestItem.TEST_ITEM, DSL.name("test_item_launch_id_fkey"), new TableField[] { JTestItem.TEST_ITEM.LAUNCH_ID }, Keys.LAUNCH_PK, new TableField[] { JLaunch.LAUNCH.ID }, true); + public static final ForeignKey TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY = Internal.createForeignKey(JTestItem.TEST_ITEM, DSL.name("test_item_parent_id_fkey"), new TableField[] { JTestItem.TEST_ITEM.PARENT_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY = Internal.createForeignKey(JTestItem.TEST_ITEM, DSL.name("test_item_retry_of_fkey"), new TableField[] { JTestItem.TEST_ITEM.RETRY_OF }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY = Internal.createForeignKey(JTestItemResults.TEST_ITEM_RESULTS, DSL.name("test_item_results_result_id_fkey"), new TableField[] { JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID }, Keys.TEST_ITEM_PK, new TableField[] { JTestItem.TEST_ITEM.ITEM_ID }, true); + public static final ForeignKey USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY = Internal.createForeignKey(JUserCreationBid.USER_CREATION_BID, DSL.name("user_creation_bid_inviting_user_id_fkey"), new TableField[] { JUserCreationBid.USER_CREATION_BID.INVITING_USER_ID }, Keys.USERS_PK, new TableField[] { JUsers.USERS.ID }, true); + public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY = Internal.createForeignKey(JUserPreference.USER_PREFERENCE, DSL.name("user_preference_filter_id_fkey"), new TableField[] { JUserPreference.USER_PREFERENCE.FILTER_ID }, Keys.FILTER_PKEY, new TableField[] { JFilter.FILTER.ID }, true); + public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY = Internal.createForeignKey(JUserPreference.USER_PREFERENCE, DSL.name("user_preference_project_id_fkey"), new TableField[] { JUserPreference.USER_PREFERENCE.PROJECT_ID }, Keys.PROJECT_PK, new TableField[] { JProject.PROJECT.ID }, true); + public static final ForeignKey USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY = Internal.createForeignKey(JUserPreference.USER_PREFERENCE, DSL.name("user_preference_user_id_fkey"), new TableField[] { JUserPreference.USER_PREFERENCE.USER_ID }, Keys.USERS_PK, new TableField[] { JUsers.USERS.ID }, true); + public static final ForeignKey WIDGET__WIDGET_ID_FK = Internal.createForeignKey(JWidget.WIDGET, DSL.name("widget_id_fk"), new TableField[] { JWidget.WIDGET.ID }, Keys.SHAREABLE_PK, new TableField[] { JOwnedEntity.OWNED_ENTITY.ID }, true); + public static final ForeignKey WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY = Internal.createForeignKey(JWidgetFilter.WIDGET_FILTER, DSL.name("widget_filter_filter_id_fkey"), new TableField[] { JWidgetFilter.WIDGET_FILTER.FILTER_ID }, Keys.FILTER_PKEY, new TableField[] { JFilter.FILTER.ID }, true); + public static final ForeignKey WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY = Internal.createForeignKey(JWidgetFilter.WIDGET_FILTER, DSL.name("widget_filter_widget_id_fkey"), new TableField[] { JWidgetFilter.WIDGET_FILTER.WIDGET_ID }, Keys.WIDGET_PKEY, new TableField[] { JWidget.WIDGET.ID }, true); } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/Sequences.java b/src/main/java/com/epam/ta/reportportal/jooq/Sequences.java index 384ea2c8c..16d57464c 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/Sequences.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/Sequences.java @@ -4,197 +4,19 @@ package com.epam.ta.reportportal.jooq; -import javax.annotation.processing.Generated; - import org.jooq.Sequence; -import org.jooq.impl.SequenceImpl; +import org.jooq.impl.Internal; +import org.jooq.impl.SQLDataType; /** - * Convenience access to all sequences in public + * Convenience access to all sequences in public. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class Sequences { - /** - * The sequence public.activity_id_seq - */ - public static final Sequence ACTIVITY_ID_SEQ = new SequenceImpl("activity_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.analytics_data_id_seq - */ - public static final Sequence ANALYTICS_DATA_ID_SEQ = new SequenceImpl("analytics_data_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.api_keys_id_seq - */ - public static final Sequence API_KEYS_ID_SEQ = new SequenceImpl("api_keys_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.attachment_id_seq - */ - public static final Sequence ATTACHMENT_ID_SEQ = new SequenceImpl("attachment_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.attribute_id_seq - */ - public static final Sequence ATTRIBUTE_ID_SEQ = new SequenceImpl("attribute_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.clusters_id_seq - */ - public static final Sequence CLUSTERS_ID_SEQ = new SequenceImpl("clusters_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.filter_condition_id_seq - */ - public static final Sequence FILTER_CONDITION_ID_SEQ = new SequenceImpl("filter_condition_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.filter_sort_id_seq - */ - public static final Sequence FILTER_SORT_ID_SEQ = new SequenceImpl("filter_sort_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.integration_id_seq - */ - public static final Sequence INTEGRATION_ID_SEQ = new SequenceImpl("integration_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence public.integration_type_id_seq - */ - public static final Sequence INTEGRATION_TYPE_ID_SEQ = new SequenceImpl("integration_type_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence public.issue_group_issue_group_id_seq - */ - public static final Sequence ISSUE_GROUP_ISSUE_GROUP_ID_SEQ = new SequenceImpl("issue_group_issue_group_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.SMALLINT.nullable(false)); - - /** - * The sequence public.issue_type_id_seq - */ - public static final Sequence ISSUE_TYPE_ID_SEQ = new SequenceImpl("issue_type_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.item_attribute_id_seq - */ - public static final Sequence ITEM_ATTRIBUTE_ID_SEQ = new SequenceImpl("item_attribute_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.launch_attribute_rules_id_seq - */ - public static final Sequence LAUNCH_ATTRIBUTE_RULES_ID_SEQ = new SequenceImpl("launch_attribute_rules_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.launch_id_seq - */ - public static final Sequence LAUNCH_ID_SEQ = new SequenceImpl("launch_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.launch_number_id_seq - */ - public static final Sequence LAUNCH_NUMBER_ID_SEQ = new SequenceImpl("launch_number_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.log_id_seq - */ - public static final Sequence LOG_ID_SEQ = new SequenceImpl("log_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.oauth_registration_restriction_id_seq - */ - public static final Sequence OAUTH_REGISTRATION_RESTRICTION_ID_SEQ = new SequenceImpl("oauth_registration_restriction_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence public.oauth_registration_scope_id_seq - */ - public static final Sequence OAUTH_REGISTRATION_SCOPE_ID_SEQ = new SequenceImpl("oauth_registration_scope_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence public.onboarding_id_seq - */ - public static final Sequence ONBOARDING_ID_SEQ = new SequenceImpl("onboarding_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.SMALLINT.nullable(false)); - - /** - * The sequence public.pattern_template_id_seq - */ - public static final Sequence PATTERN_TEMPLATE_ID_SEQ = new SequenceImpl("pattern_template_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.project_attribute_attribute_id_seq - */ - public static final Sequence PROJECT_ATTRIBUTE_ATTRIBUTE_ID_SEQ = new SequenceImpl("project_attribute_attribute_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.project_attribute_project_id_seq - */ - public static final Sequence PROJECT_ATTRIBUTE_PROJECT_ID_SEQ = new SequenceImpl("project_attribute_project_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.project_id_seq - */ - public static final Sequence PROJECT_ID_SEQ = new SequenceImpl("project_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.sender_case_id_seq - */ - public static final Sequence SENDER_CASE_ID_SEQ = new SequenceImpl("sender_case_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.sender_case_project_id_seq - */ - public static final Sequence SENDER_CASE_PROJECT_ID_SEQ = new SequenceImpl("sender_case_project_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.server_settings_id_seq - */ - public static final Sequence SERVER_SETTINGS_ID_SEQ = new SequenceImpl("server_settings_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.SMALLINT.nullable(false)); - /** * The sequence public.shareable_entity_id_seq */ - public static final Sequence SHAREABLE_ENTITY_ID_SEQ = new SequenceImpl("shareable_entity_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.stale_materialized_view_id_seq - */ - public static final Sequence STALE_MATERIALIZED_VIEW_ID_SEQ = new SequenceImpl("stale_materialized_view_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.statistics_field_sf_id_seq - */ - public static final Sequence STATISTICS_FIELD_SF_ID_SEQ = new SequenceImpl("statistics_field_sf_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.statistics_s_id_seq - */ - public static final Sequence STATISTICS_S_ID_SEQ = new SequenceImpl("statistics_s_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.test_item_item_id_seq - */ - public static final Sequence TEST_ITEM_ITEM_ID_SEQ = new SequenceImpl("test_item_item_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.ticket_id_seq - */ - public static final Sequence TICKET_ID_SEQ = new SequenceImpl("ticket_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.user_preference_id_seq - */ - public static final Sequence USER_PREFERENCE_ID_SEQ = new SequenceImpl("user_preference_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence public.users_id_seq - */ - public static final Sequence USERS_ID_SEQ = new SequenceImpl("users_id_seq", JPublic.PUBLIC, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); + public static final Sequence SHAREABLE_ENTITY_ID_SEQ = Internal.createSequence("shareable_entity_id_seq", JPublic.PUBLIC, SQLDataType.BIGINT.nullable(false), null, null, null, null, false, null); } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/Tables.java b/src/main/java/com/epam/ta/reportportal/jooq/Tables.java index 42565cb4d..bd841c78c 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/Tables.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/Tables.java @@ -61,24 +61,15 @@ import com.epam.ta.reportportal.jooq.tables.JWidgetFilter; import com.epam.ta.reportportal.jooq.tables.records.JPgpArmorHeadersRecord; -import javax.annotation.processing.Generated; - import org.jooq.Configuration; import org.jooq.Field; import org.jooq.Result; /** - * Convenience access to all tables in public + * Convenience access to all tables in public. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class Tables { /** @@ -264,22 +255,35 @@ public class Tables { /** * Call public.pgp_armor_headers. */ - public static Result PGP_ARMOR_HEADERS(Configuration configuration, String __1) { - return configuration.dsl().selectFrom(com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call(__1)).fetch(); + public static Result PGP_ARMOR_HEADERS( + Configuration configuration + , String __1 + ) { + return configuration.dsl().selectFrom(com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call( + __1 + )).fetch(); } /** * Get public.pgp_armor_headers as a table. */ - public static JPgpArmorHeaders PGP_ARMOR_HEADERS(String __1) { - return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call(__1); + public static JPgpArmorHeaders PGP_ARMOR_HEADERS( + String __1 + ) { + return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call( + __1 + ); } /** * Get public.pgp_armor_headers as a table. */ - public static JPgpArmorHeaders PGP_ARMOR_HEADERS(Field __1) { - return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call(__1); + public static JPgpArmorHeaders PGP_ARMOR_HEADERS( + Field __1 + ) { + return com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders.PGP_ARMOR_HEADERS.call( + __1 + ); } /** diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JAccessTokenTypeEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JAccessTokenTypeEnum.java index aa9293ca3..596c308b1 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JAccessTokenTypeEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JAccessTokenTypeEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JAccessTokenTypeEnum implements EnumType { OAUTH("OAUTH"), @@ -42,7 +33,7 @@ private JAccessTokenTypeEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -59,4 +50,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JAccessTokenTypeEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JAccessTokenTypeEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JAuthTypeEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JAuthTypeEnum.java index b1d17d910..ac12974c1 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JAuthTypeEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JAuthTypeEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JAuthTypeEnum implements EnumType { OAUTH("OAUTH"), @@ -42,7 +33,7 @@ private JAuthTypeEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -59,4 +50,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JAuthTypeEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JAuthTypeEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JFilterConditionEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JFilterConditionEnum.java index 8d2af3a71..b9a18a1b9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JFilterConditionEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JFilterConditionEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JFilterConditionEnum implements EnumType { EQUALS("EQUALS"), @@ -58,7 +49,7 @@ private JFilterConditionEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -75,4 +66,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JFilterConditionEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JFilterConditionEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationAuthFlowEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationAuthFlowEnum.java index e03b48f97..b5c0b1547 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationAuthFlowEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationAuthFlowEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JIntegrationAuthFlowEnum implements EnumType { OAUTH("OAUTH"), @@ -44,7 +35,7 @@ private JIntegrationAuthFlowEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -61,4 +52,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JIntegrationAuthFlowEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JIntegrationAuthFlowEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationGroupEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationGroupEnum.java index 14cdb4685..e73516721 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationGroupEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JIntegrationGroupEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JIntegrationGroupEnum implements EnumType { BTS("BTS"), @@ -44,7 +35,7 @@ private JIntegrationGroupEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -61,4 +52,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JIntegrationGroupEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JIntegrationGroupEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JIssueGroupEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JIssueGroupEnum.java index c0ed38f2d..ca1c4c04f 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JIssueGroupEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JIssueGroupEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JIssueGroupEnum implements EnumType { PRODUCT_BUG("PRODUCT_BUG"), @@ -44,7 +35,7 @@ private JIssueGroupEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -61,4 +52,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JIssueGroupEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JIssueGroupEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JLaunchModeEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JLaunchModeEnum.java index 3a8a1e391..27b46dc0c 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JLaunchModeEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JLaunchModeEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JLaunchModeEnum implements EnumType { DEFAULT("DEFAULT"), @@ -38,7 +29,7 @@ private JLaunchModeEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -55,4 +46,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JLaunchModeEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JLaunchModeEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JLogicalOperatorEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JLogicalOperatorEnum.java index b118ff474..93e69448d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JLogicalOperatorEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JLogicalOperatorEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JLogicalOperatorEnum implements EnumType { AND("AND"), @@ -38,7 +29,7 @@ private JLogicalOperatorEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -55,4 +46,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JLogicalOperatorEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JLogicalOperatorEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JPasswordEncoderType.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JPasswordEncoderType.java index 6c9b84ef2..eef02fa44 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JPasswordEncoderType.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JPasswordEncoderType.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JPasswordEncoderType implements EnumType { PLAIN("PLAIN"), @@ -44,7 +35,7 @@ private JPasswordEncoderType(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -61,4 +52,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JPasswordEncoderType lookupLiteral(String literal) { + return EnumType.lookupLiteral(JPasswordEncoderType.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JProjectRoleEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JProjectRoleEnum.java index 0be0d7121..82b6dff62 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JProjectRoleEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JProjectRoleEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JProjectRoleEnum implements EnumType { OPERATOR("OPERATOR"), @@ -42,7 +33,7 @@ private JProjectRoleEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -59,4 +50,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JProjectRoleEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JProjectRoleEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JRetentionPolicyEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JRetentionPolicyEnum.java index 15a7c7ca1..f7b87645d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JRetentionPolicyEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JRetentionPolicyEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JRetentionPolicyEnum implements EnumType { IMPORTANT("IMPORTANT"), @@ -38,7 +29,7 @@ private JRetentionPolicyEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -55,4 +46,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JRetentionPolicyEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JRetentionPolicyEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JSortDirectionEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JSortDirectionEnum.java index 983fbf9c8..a5bd31f27 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JSortDirectionEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JSortDirectionEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JSortDirectionEnum implements EnumType { ASC("ASC"), @@ -38,7 +29,7 @@ private JSortDirectionEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -55,4 +46,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JSortDirectionEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JSortDirectionEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JStatusEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JStatusEnum.java index de5198b17..7ea3f6131 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JStatusEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JStatusEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JStatusEnum implements EnumType { CANCELLED("CANCELLED"), @@ -54,7 +45,7 @@ private JStatusEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -71,4 +62,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JStatusEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JStatusEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/enums/JTestItemTypeEnum.java b/src/main/java/com/epam/ta/reportportal/jooq/enums/JTestItemTypeEnum.java index a0ae5219a..6dd9150b8 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/enums/JTestItemTypeEnum.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/enums/JTestItemTypeEnum.java @@ -6,8 +6,6 @@ import com.epam.ta.reportportal.jooq.JPublic; -import javax.annotation.processing.Generated; - import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -16,14 +14,7 @@ /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public enum JTestItemTypeEnum implements EnumType { AFTER_CLASS("AFTER_CLASS"), @@ -64,7 +55,7 @@ private JTestItemTypeEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -81,4 +72,13 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. + */ + public static JTestItemTypeEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(JTestItemTypeEnum.class, literal); + } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JActivity.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JActivity.java index 50d7d788d..b48aa69df 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JActivity.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JActivity.java @@ -8,44 +8,46 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; import com.epam.ta.reportportal.jooq.tables.records.JActivityRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row13; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JActivity extends TableImpl { - private static final long serialVersionUID = 946186659; + private static final long serialVersionUID = 1L; /** * The reference instance of public.activity @@ -63,73 +65,74 @@ public Class getRecordType() { /** * The column public.activity.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('activity_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.activity.created_at. */ - public final TableField CREATED_AT = createField(DSL.name("created_at"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.activity.action. */ - public final TableField ACTION = createField(DSL.name("action"), org.jooq.impl.SQLDataType.VARCHAR(24).nullable(false), this, ""); + public final TableField ACTION = createField(DSL.name("action"), SQLDataType.VARCHAR(24).nullable(false), this, ""); /** * The column public.activity.event_name. */ - public final TableField EVENT_NAME = createField(DSL.name("event_name"), org.jooq.impl.SQLDataType.VARCHAR(32).nullable(false), this, ""); + public final TableField EVENT_NAME = createField(DSL.name("event_name"), SQLDataType.VARCHAR(32).nullable(false), this, ""); /** * The column public.activity.priority. */ - public final TableField PRIORITY = createField(DSL.name("priority"), org.jooq.impl.SQLDataType.VARCHAR(12).nullable(false), this, ""); + public final TableField PRIORITY = createField(DSL.name("priority"), SQLDataType.VARCHAR(12).nullable(false), this, ""); /** * The column public.activity.object_id. */ - public final TableField OBJECT_ID = createField(DSL.name("object_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField OBJECT_ID = createField(DSL.name("object_id"), SQLDataType.BIGINT, this, ""); /** * The column public.activity.object_name. */ - public final TableField OBJECT_NAME = createField(DSL.name("object_name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField OBJECT_NAME = createField(DSL.name("object_name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column public.activity.object_type. */ - public final TableField OBJECT_TYPE = createField(DSL.name("object_type"), org.jooq.impl.SQLDataType.VARCHAR(24).nullable(false), this, ""); + public final TableField OBJECT_TYPE = createField(DSL.name("object_type"), SQLDataType.VARCHAR(24).nullable(false), this, ""); /** * The column public.activity.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT, this, ""); /** * The column public.activity.details. */ - public final TableField DETAILS = createField(DSL.name("details"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField DETAILS = createField(DSL.name("details"), SQLDataType.JSONB, this, ""); /** * The column public.activity.subject_id. */ - public final TableField SUBJECT_ID = createField(DSL.name("subject_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField SUBJECT_ID = createField(DSL.name("subject_id"), SQLDataType.BIGINT, this, ""); /** * The column public.activity.subject_name. */ - public final TableField SUBJECT_NAME = createField(DSL.name("subject_name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField SUBJECT_NAME = createField(DSL.name("subject_name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column public.activity.subject_type. */ - public final TableField SUBJECT_TYPE = createField(DSL.name("subject_type"), org.jooq.impl.SQLDataType.VARCHAR(32).nullable(false), this, ""); + public final TableField SUBJECT_TYPE = createField(DSL.name("subject_type"), SQLDataType.VARCHAR(32).nullable(false), this, ""); - /** - * Create a public.activity table reference - */ - public JActivity() { - this(DSL.name("activity"), null); + private JActivity(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JActivity(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -146,31 +149,59 @@ public JActivity(Name alias) { this(alias, ACTIVITY); } - private JActivity(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.activity table reference + */ + public JActivity() { + this(DSL.name("activity"), null); } - private JActivity(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JActivity(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ACTIVITY); } - public JActivity(Table child, ForeignKey key) { - super(child, key, ACTIVITY); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JActivityPath extends JActivity implements Path { + + private static final long serialVersionUID = 1L; + public JActivityPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JActivityPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JActivityPath as(String alias) { + return new JActivityPath(DSL.name(alias), this); + } + + @Override + public JActivityPath as(Name alias) { + return new JActivityPath(alias, this); + } + + @Override + public JActivityPath as(Table alias) { + return new JActivityPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.ACTIVITY_CREATED_AT_IDX, Indexes.ACTIVITY_OBJECT_IDX, Indexes.ACTIVITY_PK, Indexes.ACTIVITY_PROJECT_IDX); + return Arrays.asList(Indexes.ACTIVITY_CREATED_AT_IDX, Indexes.ACTIVITY_OBJECT_IDX, Indexes.ACTIVITY_PROJECT_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_ACTIVITY; + return (Identity) super.getIdentity(); } @Override @@ -178,18 +209,21 @@ public UniqueKey getPrimaryKey() { return Keys.ACTIVITY_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ACTIVITY_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.ACTIVITY__ACTIVITY_PROJECT_ID_FKEY); + return Arrays.asList(Keys.ACTIVITY__ACTIVITY_PROJECT_ID_FKEY); } - public JProject project() { - return new JProject(this, Keys.ACTIVITY__ACTIVITY_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.ACTIVITY__ACTIVITY_PROJECT_ID_FKEY, null); + + return _project; } @Override @@ -202,6 +236,11 @@ public JActivity as(Name alias) { return new JActivity(alias, this); } + @Override + public JActivity as(Table alias) { + return new JActivity(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -218,12 +257,95 @@ public JActivity rename(Name name) { return new JActivity(name, null); } - // ------------------------------------------------------------------------- - // Row13 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JActivity rename(Table name) { + return new JActivity(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JActivity where(Condition condition) { + return new JActivity(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JActivity where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JActivity where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JActivity where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JActivity where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JActivity where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JActivity where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JActivity where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JActivity whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row13 fieldsRow() { - return (Row13) super.fieldsRow(); + public JActivity whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAnalyticsData.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAnalyticsData.java index 72305f755..f6390e5b6 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAnalyticsData.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAnalyticsData.java @@ -5,47 +5,40 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.tables.records.JAnalyticsDataRecord; import java.time.Instant; -import java.util.Arrays; -import java.util.List; - -import javax.annotation.processing.Generated; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.JSONB; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JAnalyticsData extends TableImpl { - private static final long serialVersionUID = 282420139; + private static final long serialVersionUID = 1L; /** * The reference instance of public.analytics_data @@ -63,28 +56,29 @@ public Class getRecordType() { /** * The column public.analytics_data.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('analytics_data_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.analytics_data.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.analytics_data.created_at. */ - public final TableField CREATED_AT = createField(DSL.name("created_at"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.analytics_data.metadata. */ - public final TableField METADATA = createField(DSL.name("metadata"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField METADATA = createField(DSL.name("metadata"), SQLDataType.JSONB, this, ""); - /** - * Create a public.analytics_data table reference - */ - public JAnalyticsData() { - this(DSL.name("analytics_data"), null); + private JAnalyticsData(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JAnalyticsData(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -101,31 +95,21 @@ public JAnalyticsData(Name alias) { this(alias, ANALYTICS_DATA); } - private JAnalyticsData(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JAnalyticsData(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JAnalyticsData(Table child, ForeignKey key) { - super(child, key, ANALYTICS_DATA); + /** + * Create a public.analytics_data table reference + */ + public JAnalyticsData() { + this(DSL.name("analytics_data"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.ANALYTICS_DATA_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_ANALYTICS_DATA; + return (Identity) super.getIdentity(); } @Override @@ -133,11 +117,6 @@ public UniqueKey getPrimaryKey() { return Keys.ANALYTICS_DATA_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ANALYTICS_DATA_PKEY); - } - @Override public JAnalyticsData as(String alias) { return new JAnalyticsData(DSL.name(alias), this); @@ -148,6 +127,11 @@ public JAnalyticsData as(Name alias) { return new JAnalyticsData(alias, this); } + @Override + public JAnalyticsData as(Table alias) { + return new JAnalyticsData(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -164,12 +148,95 @@ public JAnalyticsData rename(Name name) { return new JAnalyticsData(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JAnalyticsData rename(Table name) { + return new JAnalyticsData(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAnalyticsData where(Condition condition) { + return new JAnalyticsData(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAnalyticsData where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAnalyticsData where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAnalyticsData where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAnalyticsData where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAnalyticsData where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAnalyticsData where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAnalyticsData where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAnalyticsData whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JAnalyticsData whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JApiKeys.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JApiKeys.java index b088e630c..d91a817de 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JApiKeys.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JApiKeys.java @@ -8,44 +8,46 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JUsers.JUsersPath; import com.epam.ta.reportportal.jooq.tables.records.JApiKeysRecord; -import java.sql.Date; import java.time.Instant; +import java.time.LocalDate; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JApiKeys extends TableImpl { - private static final long serialVersionUID = -859604491; + private static final long serialVersionUID = 1L; /** * The reference instance of public.api_keys @@ -63,38 +65,39 @@ public Class getRecordType() { /** * The column public.api_keys.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('api_keys_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.api_keys.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(255), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, ""); /** * The column public.api_keys.hash. */ - public final TableField HASH = createField(DSL.name("hash"), org.jooq.impl.SQLDataType.VARCHAR(255), this, ""); + public final TableField HASH = createField(DSL.name("hash"), SQLDataType.VARCHAR(255), this, ""); /** * The column public.api_keys.created_at. */ - public final TableField CREATED_AT = createField(DSL.name("created_at"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.api_keys.user_id. */ - public final TableField USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.BIGINT, this, ""); /** * The column public.api_keys.last_used_at. */ - public final TableField LAST_USED_AT = createField(DSL.name("last_used_at"), org.jooq.impl.SQLDataType.DATE, this, ""); + public final TableField LAST_USED_AT = createField(DSL.name("last_used_at"), SQLDataType.LOCALDATE, this, ""); - /** - * Create a public.api_keys table reference - */ - public JApiKeys() { - this(DSL.name("api_keys"), null); + private JApiKeys(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JApiKeys(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -111,31 +114,59 @@ public JApiKeys(Name alias) { this(alias, API_KEYS); } - private JApiKeys(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.api_keys table reference + */ + public JApiKeys() { + this(DSL.name("api_keys"), null); } - private JApiKeys(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JApiKeys(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, API_KEYS); } - public JApiKeys(Table child, ForeignKey key) { - super(child, key, API_KEYS); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JApiKeysPath extends JApiKeys implements Path { + + private static final long serialVersionUID = 1L; + public JApiKeysPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JApiKeysPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JApiKeysPath as(String alias) { + return new JApiKeysPath(DSL.name(alias), this); + } + + @Override + public JApiKeysPath as(Name alias) { + return new JApiKeysPath(alias, this); + } + + @Override + public JApiKeysPath as(Table alias) { + return new JApiKeysPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.API_KEYS_PKEY, Indexes.HASH_API_KEYS_IDX, Indexes.USERS_API_KEYS_UNIQUE); + return Arrays.asList(Indexes.HASH_API_KEYS_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_API_KEYS; + return (Identity) super.getIdentity(); } @Override @@ -144,17 +175,25 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.API_KEYS_PKEY, Keys.USERS_API_KEYS_UNIQUE); + public List> getUniqueKeys() { + return Arrays.asList(Keys.USERS_API_KEYS_UNIQUE); } @Override public List> getReferences() { - return Arrays.>asList(Keys.API_KEYS__API_KEYS_USER_ID_FKEY); + return Arrays.asList(Keys.API_KEYS__API_KEYS_USER_ID_FKEY); } - public JUsers users() { - return new JUsers(this, Keys.API_KEYS__API_KEYS_USER_ID_FKEY); + private transient JUsersPath _users; + + /** + * Get the implicit join path to the public.users table. + */ + public JUsersPath users() { + if (_users == null) + _users = new JUsersPath(this, Keys.API_KEYS__API_KEYS_USER_ID_FKEY, null); + + return _users; } @Override @@ -167,6 +206,11 @@ public JApiKeys as(Name alias) { return new JApiKeys(alias, this); } + @Override + public JApiKeys as(Table alias) { + return new JApiKeys(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -183,12 +227,95 @@ public JApiKeys rename(Name name) { return new JApiKeys(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JApiKeys rename(Table name) { + return new JApiKeys(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JApiKeys where(Condition condition) { + return new JApiKeys(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JApiKeys where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JApiKeys where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JApiKeys where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JApiKeys where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JApiKeys where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JApiKeys where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JApiKeys where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JApiKeys whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public JApiKeys whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachment.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachment.java index 0ab47366d..d25eeda76 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachment.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachment.java @@ -8,43 +8,45 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JLog.JLogPath; import com.epam.ta.reportportal.jooq.tables.records.JAttachmentRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row10; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JAttachment extends TableImpl { - private static final long serialVersionUID = 116419815; + private static final long serialVersionUID = 1L; /** * The reference instance of public.attachment @@ -62,58 +64,59 @@ public Class getRecordType() { /** * The column public.attachment.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('attachment_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.attachment.file_id. */ - public final TableField FILE_ID = createField(DSL.name("file_id"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField FILE_ID = createField(DSL.name("file_id"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.attachment.thumbnail_id. */ - public final TableField THUMBNAIL_ID = createField(DSL.name("thumbnail_id"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField THUMBNAIL_ID = createField(DSL.name("thumbnail_id"), SQLDataType.CLOB, this, ""); /** * The column public.attachment.content_type. */ - public final TableField CONTENT_TYPE = createField(DSL.name("content_type"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField CONTENT_TYPE = createField(DSL.name("content_type"), SQLDataType.CLOB, this, ""); /** * The column public.attachment.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT, this, ""); /** * The column public.attachment.launch_id. */ - public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), SQLDataType.BIGINT, this, ""); /** * The column public.attachment.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT, this, ""); /** * The column public.attachment.file_size. */ - public final TableField FILE_SIZE = createField(DSL.name("file_size"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField FILE_SIZE = createField(DSL.name("file_size"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); /** * The column public.attachment.creation_date. */ - public final TableField CREATION_DATE = createField(DSL.name("creation_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.attachment.file_name. */ - public final TableField FILE_NAME = createField(DSL.name("file_name"), org.jooq.impl.SQLDataType.VARCHAR(512), this, ""); + public final TableField FILE_NAME = createField(DSL.name("file_name"), SQLDataType.VARCHAR(512), this, ""); - /** - * Create a public.attachment table reference - */ - public JAttachment() { - this(DSL.name("attachment"), null); + private JAttachment(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JAttachment(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -130,31 +133,59 @@ public JAttachment(Name alias) { this(alias, ATTACHMENT); } - private JAttachment(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.attachment table reference + */ + public JAttachment() { + this(DSL.name("attachment"), null); } - private JAttachment(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JAttachment(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ATTACHMENT); } - public JAttachment(Table child, ForeignKey key) { - super(child, key, ATTACHMENT); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JAttachmentPath extends JAttachment implements Path { + + private static final long serialVersionUID = 1L; + public JAttachmentPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JAttachmentPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JAttachmentPath as(String alias) { + return new JAttachmentPath(DSL.name(alias), this); + } + + @Override + public JAttachmentPath as(Name alias) { + return new JAttachmentPath(alias, this); + } + + @Override + public JAttachmentPath as(Table alias) { + return new JAttachmentPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.ATT_ITEM_IDX, Indexes.ATT_LAUNCH_IDX, Indexes.ATT_PROJECT_IDX, Indexes.ATTACHMENT_PK, Indexes.ATTACHMENT_PROJECT_ID_CREATION_TIME_IDX); + return Arrays.asList(Indexes.ATT_ITEM_IDX, Indexes.ATT_LAUNCH_IDX, Indexes.ATT_PROJECT_IDX, Indexes.ATTACHMENT_PROJECT_ID_CREATION_TIME_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_ATTACHMENT; + return (Identity) super.getIdentity(); } @Override @@ -162,9 +193,16 @@ public UniqueKey getPrimaryKey() { return Keys.ATTACHMENT_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ATTACHMENT_PK); + private transient JLogPath _log; + + /** + * Get the implicit to-many join path to the public.log table + */ + public JLogPath log() { + if (_log == null) + _log = new JLogPath(this, null, Keys.LOG__LOG_ATTACHMENT_ID_FKEY.getInverseKey()); + + return _log; } @Override @@ -177,6 +215,11 @@ public JAttachment as(Name alias) { return new JAttachment(alias, this); } + @Override + public JAttachment as(Table alias) { + return new JAttachment(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -193,12 +236,95 @@ public JAttachment rename(Name name) { return new JAttachment(name, null); } - // ------------------------------------------------------------------------- - // Row10 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JAttachment rename(Table name) { + return new JAttachment(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JAttachment where(Condition condition) { + return new JAttachment(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachment where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachment where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachment where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachment where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachment where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachment where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachment where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachment whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row10 fieldsRow() { - return (Row10) super.fieldsRow(); + public JAttachment whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachmentDeletion.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachmentDeletion.java index e29fcf614..02bcea065 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachmentDeletion.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttachmentDeletion.java @@ -5,45 +5,38 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.tables.records.JAttachmentDeletionRecord; import java.time.Instant; -import java.util.Arrays; -import java.util.List; - -import javax.annotation.processing.Generated; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JAttachmentDeletion extends TableImpl { - private static final long serialVersionUID = 2100753798; + private static final long serialVersionUID = 1L; /** * The reference instance of public.attachment_deletion @@ -61,33 +54,35 @@ public Class getRecordType() { /** * The column public.attachment_deletion.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.attachment_deletion.file_id. */ - public final TableField FILE_ID = createField(DSL.name("file_id"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField FILE_ID = createField(DSL.name("file_id"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.attachment_deletion.thumbnail_id. */ - public final TableField THUMBNAIL_ID = createField(DSL.name("thumbnail_id"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField THUMBNAIL_ID = createField(DSL.name("thumbnail_id"), SQLDataType.CLOB, this, ""); /** - * The column public.attachment_deletion.creation_attachment_date. + * The column + * public.attachment_deletion.creation_attachment_date. */ - public final TableField CREATION_ATTACHMENT_DATE = createField(DSL.name("creation_attachment_date"), org.jooq.impl.SQLDataType.TIMESTAMP, this, "", new JooqInstantConverter()); + public final TableField CREATION_ATTACHMENT_DATE = createField(DSL.name("creation_attachment_date"), SQLDataType.LOCALDATETIME(6), this, "", new JooqInstantConverter()); /** * The column public.attachment_deletion.deletion_date. */ - public final TableField DELETION_DATE = createField(DSL.name("deletion_date"), org.jooq.impl.SQLDataType.TIMESTAMP, this, "", new JooqInstantConverter()); + public final TableField DELETION_DATE = createField(DSL.name("deletion_date"), SQLDataType.LOCALDATETIME(6), this, "", new JooqInstantConverter()); - /** - * Create a public.attachment_deletion table reference - */ - public JAttachmentDeletion() { - this(DSL.name("attachment_deletion"), null); + private JAttachmentDeletion(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JAttachmentDeletion(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -104,26 +99,16 @@ public JAttachmentDeletion(Name alias) { this(alias, ATTACHMENT_DELETION); } - private JAttachmentDeletion(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JAttachmentDeletion(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JAttachmentDeletion(Table child, ForeignKey key) { - super(child, key, ATTACHMENT_DELETION); + /** + * Create a public.attachment_deletion table reference + */ + public JAttachmentDeletion() { + this(DSL.name("attachment_deletion"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.ATTACHMENT_DELETION_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -131,11 +116,6 @@ public UniqueKey getPrimaryKey() { return Keys.ATTACHMENT_DELETION_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ATTACHMENT_DELETION_PKEY); - } - @Override public JAttachmentDeletion as(String alias) { return new JAttachmentDeletion(DSL.name(alias), this); @@ -146,6 +126,11 @@ public JAttachmentDeletion as(Name alias) { return new JAttachmentDeletion(alias, this); } + @Override + public JAttachmentDeletion as(Table alias) { + return new JAttachmentDeletion(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -162,12 +147,95 @@ public JAttachmentDeletion rename(Name name) { return new JAttachmentDeletion(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JAttachmentDeletion rename(Table name) { + return new JAttachmentDeletion(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachmentDeletion where(Condition condition) { + return new JAttachmentDeletion(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachmentDeletion where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachmentDeletion where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachmentDeletion where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachmentDeletion where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachmentDeletion where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachmentDeletion where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttachmentDeletion where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttachmentDeletion whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public JAttachmentDeletion whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttribute.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttribute.java index 547091d40..507b3a7b3 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttribute.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JAttribute.java @@ -4,45 +4,44 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JProjectAttribute.JProjectAttributePath; import com.epam.ta.reportportal.jooq.tables.records.JAttributeRecord; -import java.util.Arrays; -import java.util.List; - -import javax.annotation.processing.Generated; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JAttribute extends TableImpl { - private static final long serialVersionUID = -720380676; + private static final long serialVersionUID = 1L; /** * The reference instance of public.attribute @@ -60,18 +59,19 @@ public Class getRecordType() { /** * The column public.attribute.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('attribute_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.attribute.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(256), this, ""); - /** - * Create a public.attribute table reference - */ - public JAttribute() { - this(DSL.name("attribute"), null); + private JAttribute(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JAttribute(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -88,31 +88,54 @@ public JAttribute(Name alias) { this(alias, ATTRIBUTE); } - private JAttribute(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.attribute table reference + */ + public JAttribute() { + this(DSL.name("attribute"), null); } - private JAttribute(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JAttribute(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ATTRIBUTE); } - public JAttribute(Table child, ForeignKey key) { - super(child, key, ATTRIBUTE); - } + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JAttributePath extends JAttribute implements Path { - @Override - public Schema getSchema() { - return JPublic.PUBLIC; + private static final long serialVersionUID = 1L; + public JAttributePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JAttributePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JAttributePath as(String alias) { + return new JAttributePath(DSL.name(alias), this); + } + + @Override + public JAttributePath as(Name alias) { + return new JAttributePath(alias, this); + } + + @Override + public JAttributePath as(Table alias) { + return new JAttributePath(alias.getQualifiedName(), this); + } } @Override - public List getIndexes() { - return Arrays.asList(Indexes.ATTRIBUTE_PK); + public Schema getSchema() { + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_ATTRIBUTE; + return (Identity) super.getIdentity(); } @Override @@ -120,9 +143,25 @@ public UniqueKey getPrimaryKey() { return Keys.ATTRIBUTE_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ATTRIBUTE_PK); + private transient JProjectAttributePath _projectAttribute; + + /** + * Get the implicit to-many join path to the + * public.project_attribute table + */ + public JProjectAttributePath projectAttribute() { + if (_projectAttribute == null) + _projectAttribute = new JProjectAttributePath(this, null, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY.getInverseKey()); + + return _projectAttribute; + } + + /** + * Get the implicit many-to-many join path to the + * public.project table + */ + public JProjectPath project() { + return projectAttribute().project(); } @Override @@ -135,6 +174,11 @@ public JAttribute as(Name alias) { return new JAttribute(alias, this); } + @Override + public JAttribute as(Table alias) { + return new JAttribute(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -151,12 +195,95 @@ public JAttribute rename(Name name) { return new JAttribute(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JAttribute rename(Table name) { + return new JAttribute(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttribute where(Condition condition) { + return new JAttribute(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttribute where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttribute where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JAttribute where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttribute where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttribute where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttribute where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JAttribute where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + /** + * Create an inline derived table from this table + */ + @Override + public JAttribute whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JAttribute whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JClusters.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JClusters.java index 5d8ab0c83..f5d4ff186 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JClusters.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JClusters.java @@ -10,39 +10,36 @@ import com.epam.ta.reportportal.jooq.tables.records.JClustersRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JClusters extends TableImpl { - private static final long serialVersionUID = -1432286641; + private static final long serialVersionUID = 1L; /** * The reference instance of public.clusters @@ -60,33 +57,34 @@ public Class getRecordType() { /** * The column public.clusters.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('clusters_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.clusters.index_id. */ - public final TableField INDEX_ID = createField(DSL.name("index_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField INDEX_ID = createField(DSL.name("index_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.clusters.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.clusters.launch_id. */ - public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.clusters.message. */ - public final TableField MESSAGE = createField(DSL.name("message"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField MESSAGE = createField(DSL.name("message"), SQLDataType.CLOB.nullable(false), this, ""); - /** - * Create a public.clusters table reference - */ - public JClusters() { - this(DSL.name("clusters"), null); + private JClusters(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JClusters(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -103,31 +101,26 @@ public JClusters(Name alias) { this(alias, CLUSTERS); } - private JClusters(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JClusters(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JClusters(Table child, ForeignKey key) { - super(child, key, CLUSTERS); + /** + * Create a public.clusters table reference + */ + public JClusters() { + this(DSL.name("clusters"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.CLUSTER_INDEX_ID_IDX, Indexes.CLUSTER_LAUNCH_IDX, Indexes.CLUSTER_PROJECT_IDX, Indexes.CLUSTERS_PK, Indexes.INDEX_ID_LAUNCH_ID_UNQ); + return Arrays.asList(Indexes.CLUSTER_INDEX_ID_IDX, Indexes.CLUSTER_LAUNCH_IDX, Indexes.CLUSTER_PROJECT_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_CLUSTERS; + return (Identity) super.getIdentity(); } @Override @@ -136,8 +129,8 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.CLUSTERS_PK, Keys.INDEX_ID_LAUNCH_ID_UNQ); + public List> getUniqueKeys() { + return Arrays.asList(Keys.INDEX_ID_LAUNCH_ID_UNQ); } @Override @@ -150,6 +143,11 @@ public JClusters as(Name alias) { return new JClusters(alias, this); } + @Override + public JClusters as(Table alias) { + return new JClusters(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -166,12 +164,95 @@ public JClusters rename(Name name) { return new JClusters(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JClusters rename(Table name) { + return new JClusters(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClusters where(Condition condition) { + return new JClusters(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClusters where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClusters where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClusters where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClusters where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClusters where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClusters where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClusters where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClusters whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public JClusters whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JClustersTestItem.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JClustersTestItem.java index 98498d548..2e513b6a2 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JClustersTestItem.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JClustersTestItem.java @@ -10,38 +10,35 @@ import com.epam.ta.reportportal.jooq.tables.records.JClustersTestItemRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JClustersTestItem extends TableImpl { - private static final long serialVersionUID = -1374737681; + private static final long serialVersionUID = 1L; /** * The reference instance of public.clusters_test_item @@ -59,18 +56,19 @@ public Class getRecordType() { /** * The column public.clusters_test_item.cluster_id. */ - public final TableField CLUSTER_ID = createField(DSL.name("cluster_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField CLUSTER_ID = createField(DSL.name("cluster_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.clusters_test_item.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.clusters_test_item table reference - */ - public JClustersTestItem() { - this(DSL.name("clusters_test_item"), null); + private JClustersTestItem(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JClustersTestItem(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -87,31 +85,26 @@ public JClustersTestItem(Name alias) { this(alias, CLUSTERS_TEST_ITEM); } - private JClustersTestItem(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JClustersTestItem(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JClustersTestItem(Table child, ForeignKey key) { - super(child, key, CLUSTERS_TEST_ITEM); + /** + * Create a public.clusters_test_item table reference + */ + public JClustersTestItem() { + this(DSL.name("clusters_test_item"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.CLUSTER_ITEM_CLUSTER_IDX, Indexes.CLUSTER_ITEM_ITEM_IDX, Indexes.CLUSTER_ITEM_UNQ); + return Arrays.asList(Indexes.CLUSTER_ITEM_CLUSTER_IDX, Indexes.CLUSTER_ITEM_ITEM_IDX); } @Override - public List> getKeys() { - return Arrays.>asList(Keys.CLUSTER_ITEM_UNQ); + public List> getUniqueKeys() { + return Arrays.asList(Keys.CLUSTER_ITEM_UNQ); } @Override @@ -124,6 +117,11 @@ public JClustersTestItem as(Name alias) { return new JClustersTestItem(alias, this); } + @Override + public JClustersTestItem as(Table alias) { + return new JClustersTestItem(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -140,12 +138,95 @@ public JClustersTestItem rename(Name name) { return new JClustersTestItem(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JClustersTestItem rename(Table name) { + return new JClustersTestItem(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClustersTestItem where(Condition condition) { + return new JClustersTestItem(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClustersTestItem where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClustersTestItem where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClustersTestItem where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClustersTestItem where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClustersTestItem where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClustersTestItem where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JClustersTestItem where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JClustersTestItem whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JClustersTestItem whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JContentField.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JContentField.java index f180cdba0..7d71e7ff1 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JContentField.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JContentField.java @@ -7,40 +7,42 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JWidget.JWidgetPath; import com.epam.ta.reportportal.jooq.tables.records.JContentFieldRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JContentField extends TableImpl { - private static final long serialVersionUID = 840904857; + private static final long serialVersionUID = 1L; /** * The reference instance of public.content_field @@ -58,18 +60,19 @@ public Class getRecordType() { /** * The column public.content_field.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT, this, ""); /** * The column public.content_field.field. */ - public final TableField FIELD = createField(DSL.name("field"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField FIELD = createField(DSL.name("field"), SQLDataType.VARCHAR.nullable(false), this, ""); - /** - * Create a public.content_field table reference - */ - public JContentField() { - this(DSL.name("content_field"), null); + private JContentField(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JContentField(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -86,35 +89,71 @@ public JContentField(Name alias) { this(alias, CONTENT_FIELD); } - private JContentField(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.content_field table reference + */ + public JContentField() { + this(DSL.name("content_field"), null); } - private JContentField(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JContentField(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, CONTENT_FIELD); } - public JContentField(Table child, ForeignKey key) { - super(child, key, CONTENT_FIELD); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JContentFieldPath extends JContentField implements Path { + + private static final long serialVersionUID = 1L; + public JContentFieldPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JContentFieldPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JContentFieldPath as(String alias) { + return new JContentFieldPath(DSL.name(alias), this); + } + + @Override + public JContentFieldPath as(Name alias) { + return new JContentFieldPath(alias, this); + } + + @Override + public JContentFieldPath as(Table alias) { + return new JContentFieldPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.CONTENT_FIELD_IDX, Indexes.CONTENT_FIELD_WIDGET_IDX); + return Arrays.asList(Indexes.CONTENT_FIELD_IDX, Indexes.CONTENT_FIELD_WIDGET_IDX); } @Override public List> getReferences() { - return Arrays.>asList(Keys.CONTENT_FIELD__CONTENT_FIELD_ID_FKEY); + return Arrays.asList(Keys.CONTENT_FIELD__CONTENT_FIELD_ID_FKEY); } - public JWidget widget() { - return new JWidget(this, Keys.CONTENT_FIELD__CONTENT_FIELD_ID_FKEY); + private transient JWidgetPath _widget; + + /** + * Get the implicit join path to the public.widget table. + */ + public JWidgetPath widget() { + if (_widget == null) + _widget = new JWidgetPath(this, Keys.CONTENT_FIELD__CONTENT_FIELD_ID_FKEY, null); + + return _widget; } @Override @@ -127,6 +166,11 @@ public JContentField as(Name alias) { return new JContentField(alias, this); } + @Override + public JContentField as(Table alias) { + return new JContentField(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -143,12 +187,95 @@ public JContentField rename(Name name) { return new JContentField(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JContentField rename(Table name) { + return new JContentField(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JContentField where(Condition condition) { + return new JContentField(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JContentField where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JContentField where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JContentField where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JContentField where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JContentField where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JContentField where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JContentField where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JContentField whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JContentField whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboard.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboard.java index 3220b56e3..941f4026d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboard.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboard.java @@ -5,45 +5,47 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JDashboardWidget.JDashboardWidgetPath; +import com.epam.ta.reportportal.jooq.tables.JOwnedEntity.JOwnedEntityPath; +import com.epam.ta.reportportal.jooq.tables.JWidget.JWidgetPath; import com.epam.ta.reportportal.jooq.tables.records.JDashboardRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JDashboard extends TableImpl { - private static final long serialVersionUID = 396879431; + private static final long serialVersionUID = 1L; /** * The reference instance of public.dashboard @@ -61,28 +63,29 @@ public Class getRecordType() { /** * The column public.dashboard.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.dashboard.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.dashboard.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR, this, ""); /** * The column public.dashboard.creation_date. */ - public final TableField CREATION_DATE = createField(DSL.name("creation_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); - /** - * Create a public.dashboard table reference - */ - public JDashboard() { - this(DSL.name("dashboard"), null); + private JDashboard(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JDashboard(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -99,26 +102,49 @@ public JDashboard(Name alias) { this(alias, DASHBOARD); } - private JDashboard(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.dashboard table reference + */ + public JDashboard() { + this(DSL.name("dashboard"), null); } - private JDashboard(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JDashboard(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, DASHBOARD); } - public JDashboard(Table child, ForeignKey key) { - super(child, key, DASHBOARD); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JDashboardPath extends JDashboard implements Path { + + private static final long serialVersionUID = 1L; + public JDashboardPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JDashboardPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JDashboardPath as(String alias) { + return new JDashboardPath(DSL.name(alias), this); + } + + @Override + public JDashboardPath as(Name alias) { + return new JDashboardPath(alias, this); + } + + @Override + public JDashboardPath as(Table alias) { + return new JDashboardPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.DASHBOARD_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -127,17 +153,41 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.DASHBOARD_PKEY); + public List> getReferences() { + return Arrays.asList(Keys.DASHBOARD__DASHBOARD_ID_FK); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.DASHBOARD__DASHBOARD_ID_FK); + private transient JOwnedEntityPath _ownedEntity; + + /** + * Get the implicit join path to the public.owned_entity table. + */ + public JOwnedEntityPath ownedEntity() { + if (_ownedEntity == null) + _ownedEntity = new JOwnedEntityPath(this, Keys.DASHBOARD__DASHBOARD_ID_FK, null); + + return _ownedEntity; } - public JOwnedEntity ownedEntity() { - return new JOwnedEntity(this, Keys.DASHBOARD__DASHBOARD_ID_FK); + private transient JDashboardWidgetPath _dashboardWidget; + + /** + * Get the implicit to-many join path to the + * public.dashboard_widget table + */ + public JDashboardWidgetPath dashboardWidget() { + if (_dashboardWidget == null) + _dashboardWidget = new JDashboardWidgetPath(this, null, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY.getInverseKey()); + + return _dashboardWidget; + } + + /** + * Get the implicit many-to-many join path to the public.widget + * table + */ + public JWidgetPath widget() { + return dashboardWidget().widget(); } @Override @@ -150,6 +200,11 @@ public JDashboard as(Name alias) { return new JDashboard(alias, this); } + @Override + public JDashboard as(Table alias) { + return new JDashboard(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -166,12 +221,95 @@ public JDashboard rename(Name name) { return new JDashboard(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JDashboard rename(Table name) { + return new JDashboard(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboard where(Condition condition) { + return new JDashboard(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboard where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboard where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboard where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboard where(SQL condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboard where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboard where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboard where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboard whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JDashboard whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboardWidget.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboardWidget.java index 819422a2e..dab6f4e8d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboardWidget.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JDashboardWidget.java @@ -4,44 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JDashboard.JDashboardPath; +import com.epam.ta.reportportal.jooq.tables.JWidget.JWidgetPath; import com.epam.ta.reportportal.jooq.tables.records.JDashboardWidgetRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row10; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JDashboardWidget extends TableImpl { - private static final long serialVersionUID = 2110169553; + private static final long serialVersionUID = 1L; /** * The reference instance of public.dashboard_widget @@ -59,58 +60,59 @@ public Class getRecordType() { /** * The column public.dashboard_widget.dashboard_id. */ - public final TableField DASHBOARD_ID = createField(DSL.name("dashboard_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField DASHBOARD_ID = createField(DSL.name("dashboard_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_id. */ - public final TableField WIDGET_ID = createField(DSL.name("widget_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField WIDGET_ID = createField(DSL.name("widget_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_name. */ - public final TableField WIDGET_NAME = createField(DSL.name("widget_name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField WIDGET_NAME = createField(DSL.name("widget_name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_owner. */ - public final TableField WIDGET_OWNER = createField(DSL.name("widget_owner"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField WIDGET_OWNER = createField(DSL.name("widget_owner"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_type. */ - public final TableField WIDGET_TYPE = createField(DSL.name("widget_type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField WIDGET_TYPE = createField(DSL.name("widget_type"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_width. */ - public final TableField WIDGET_WIDTH = createField(DSL.name("widget_width"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WIDGET_WIDTH = createField(DSL.name("widget_width"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_height. */ - public final TableField WIDGET_HEIGHT = createField(DSL.name("widget_height"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WIDGET_HEIGHT = createField(DSL.name("widget_height"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_position_x. */ - public final TableField WIDGET_POSITION_X = createField(DSL.name("widget_position_x"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WIDGET_POSITION_X = createField(DSL.name("widget_position_x"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column public.dashboard_widget.widget_position_y. */ - public final TableField WIDGET_POSITION_Y = createField(DSL.name("widget_position_y"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WIDGET_POSITION_Y = createField(DSL.name("widget_position_y"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column public.dashboard_widget.is_created_on. */ - public final TableField IS_CREATED_ON = createField(DSL.name("is_created_on"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField IS_CREATED_ON = createField(DSL.name("is_created_on"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - /** - * Create a public.dashboard_widget table reference - */ - public JDashboardWidget() { - this(DSL.name("dashboard_widget"), null); + private JDashboardWidget(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JDashboardWidget(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -127,26 +129,49 @@ public JDashboardWidget(Name alias) { this(alias, DASHBOARD_WIDGET); } - private JDashboardWidget(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.dashboard_widget table reference + */ + public JDashboardWidget() { + this(DSL.name("dashboard_widget"), null); } - private JDashboardWidget(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JDashboardWidget(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, DASHBOARD_WIDGET); } - public JDashboardWidget(Table child, ForeignKey key) { - super(child, key, DASHBOARD_WIDGET); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JDashboardWidgetPath extends JDashboardWidget implements Path { + + private static final long serialVersionUID = 1L; + public JDashboardWidgetPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JDashboardWidgetPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JDashboardWidgetPath as(String alias) { + return new JDashboardWidgetPath(DSL.name(alias), this); + } + + @Override + public JDashboardWidgetPath as(Name alias) { + return new JDashboardWidgetPath(alias, this); + } + + @Override + public JDashboardWidgetPath as(Table alias) { + return new JDashboardWidgetPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.DASHBOARD_WIDGET_PK, Indexes.WIDGET_ON_DASHBOARD_UNQ); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -155,21 +180,37 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.DASHBOARD_WIDGET_PK, Keys.WIDGET_ON_DASHBOARD_UNQ); + public List> getUniqueKeys() { + return Arrays.asList(Keys.WIDGET_ON_DASHBOARD_UNQ); } @Override public List> getReferences() { - return Arrays.>asList(Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY); + return Arrays.asList(Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY); } - public JDashboard dashboard() { - return new JDashboard(this, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY); + private transient JDashboardPath _dashboard; + + /** + * Get the implicit join path to the public.dashboard table. + */ + public JDashboardPath dashboard() { + if (_dashboard == null) + _dashboard = new JDashboardPath(this, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_DASHBOARD_ID_FKEY, null); + + return _dashboard; } - public JWidget widget() { - return new JWidget(this, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY); + private transient JWidgetPath _widget; + + /** + * Get the implicit join path to the public.widget table. + */ + public JWidgetPath widget() { + if (_widget == null) + _widget = new JWidgetPath(this, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY, null); + + return _widget; } @Override @@ -182,6 +223,11 @@ public JDashboardWidget as(Name alias) { return new JDashboardWidget(alias, this); } + @Override + public JDashboardWidget as(Table alias) { + return new JDashboardWidget(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -198,12 +244,95 @@ public JDashboardWidget rename(Name name) { return new JDashboardWidget(name, null); } - // ------------------------------------------------------------------------- - // Row10 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JDashboardWidget rename(Table name) { + return new JDashboardWidget(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboardWidget where(Condition condition) { + return new JDashboardWidget(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JDashboardWidget where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboardWidget where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboardWidget where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboardWidget where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboardWidget where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboardWidget where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JDashboardWidget where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JDashboardWidget whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row10 fieldsRow() { - return (Row10) super.fieldsRow(); + public JDashboardWidget whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilter.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilter.java index fb81da179..42708f3f8 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilter.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilter.java @@ -4,44 +4,49 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JFilterCondition.JFilterConditionPath; +import com.epam.ta.reportportal.jooq.tables.JFilterSort.JFilterSortPath; +import com.epam.ta.reportportal.jooq.tables.JOwnedEntity.JOwnedEntityPath; +import com.epam.ta.reportportal.jooq.tables.JUserPreference.JUserPreferencePath; +import com.epam.ta.reportportal.jooq.tables.JWidget.JWidgetPath; +import com.epam.ta.reportportal.jooq.tables.JWidgetFilter.JWidgetFilterPath; import com.epam.ta.reportportal.jooq.tables.records.JFilterRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JFilter extends TableImpl { - private static final long serialVersionUID = -1242846460; + private static final long serialVersionUID = 1L; /** * The reference instance of public.filter @@ -59,28 +64,29 @@ public Class getRecordType() { /** * The column public.filter.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.filter.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.filter.target. */ - public final TableField TARGET = createField(DSL.name("target"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField TARGET = createField(DSL.name("target"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.filter.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR, this, ""); - /** - * Create a public.filter table reference - */ - public JFilter() { - this(DSL.name("filter"), null); + private JFilter(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JFilter(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -97,26 +103,49 @@ public JFilter(Name alias) { this(alias, FILTER); } - private JFilter(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.filter table reference + */ + public JFilter() { + this(DSL.name("filter"), null); } - private JFilter(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JFilter(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, FILTER); } - public JFilter(Table child, ForeignKey key) { - super(child, key, FILTER); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JFilterPath extends JFilter implements Path { + + private static final long serialVersionUID = 1L; + public JFilterPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JFilterPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JFilterPath as(String alias) { + return new JFilterPath(DSL.name(alias), this); + } + + @Override + public JFilterPath as(Name alias) { + return new JFilterPath(alias, this); + } + + @Override + public JFilterPath as(Table alias) { + return new JFilterPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.FILTER_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -125,17 +154,80 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.FILTER_PKEY); + public List> getReferences() { + return Arrays.asList(Keys.FILTER__FILTER_ID_FK); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.FILTER__FILTER_ID_FK); + private transient JOwnedEntityPath _ownedEntity; + + /** + * Get the implicit join path to the public.owned_entity table. + */ + public JOwnedEntityPath ownedEntity() { + if (_ownedEntity == null) + _ownedEntity = new JOwnedEntityPath(this, Keys.FILTER__FILTER_ID_FK, null); + + return _ownedEntity; } - public JOwnedEntity ownedEntity() { - return new JOwnedEntity(this, Keys.FILTER__FILTER_ID_FK); + private transient JFilterConditionPath _filterCondition; + + /** + * Get the implicit to-many join path to the + * public.filter_condition table + */ + public JFilterConditionPath filterCondition() { + if (_filterCondition == null) + _filterCondition = new JFilterConditionPath(this, null, Keys.FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY.getInverseKey()); + + return _filterCondition; + } + + private transient JFilterSortPath _filterSort; + + /** + * Get the implicit to-many join path to the public.filter_sort + * table + */ + public JFilterSortPath filterSort() { + if (_filterSort == null) + _filterSort = new JFilterSortPath(this, null, Keys.FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY.getInverseKey()); + + return _filterSort; + } + + private transient JUserPreferencePath _userPreference; + + /** + * Get the implicit to-many join path to the + * public.user_preference table + */ + public JUserPreferencePath userPreference() { + if (_userPreference == null) + _userPreference = new JUserPreferencePath(this, null, Keys.USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY.getInverseKey()); + + return _userPreference; + } + + private transient JWidgetFilterPath _widgetFilter; + + /** + * Get the implicit to-many join path to the + * public.widget_filter table + */ + public JWidgetFilterPath widgetFilter() { + if (_widgetFilter == null) + _widgetFilter = new JWidgetFilterPath(this, null, Keys.WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY.getInverseKey()); + + return _widgetFilter; + } + + /** + * Get the implicit many-to-many join path to the public.widget + * table + */ + public JWidgetPath widget() { + return widgetFilter().widget(); } @Override @@ -148,6 +240,11 @@ public JFilter as(Name alias) { return new JFilter(alias, this); } + @Override + public JFilter as(Table alias) { + return new JFilter(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -164,12 +261,95 @@ public JFilter rename(Name name) { return new JFilter(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JFilter rename(Table name) { + return new JFilter(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilter where(Condition condition) { + return new JFilter(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilter where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilter where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilter where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilter where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilter where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilter where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilter where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilter whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JFilter whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterCondition.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterCondition.java index a37b4c452..767ad7d28 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterCondition.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterCondition.java @@ -8,42 +8,44 @@ import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JFilterConditionEnum; +import com.epam.ta.reportportal.jooq.tables.JFilter.JFilterPath; import com.epam.ta.reportportal.jooq.tables.records.JFilterConditionRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JFilterCondition extends TableImpl { - private static final long serialVersionUID = 1735686331; + private static final long serialVersionUID = 1L; /** * The reference instance of public.filter_condition @@ -61,38 +63,39 @@ public Class getRecordType() { /** * The column public.filter_condition.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('filter_condition_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.filter_condition.filter_id. */ - public final TableField FILTER_ID = createField(DSL.name("filter_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField FILTER_ID = createField(DSL.name("filter_id"), SQLDataType.BIGINT, this, ""); /** * The column public.filter_condition.condition. */ - public final TableField CONDITION = createField(DSL.name("condition"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JFilterConditionEnum.class), this, ""); + public final TableField CONDITION = createField(DSL.name("condition"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JFilterConditionEnum.class), this, ""); /** * The column public.filter_condition.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.filter_condition.search_criteria. */ - public final TableField SEARCH_CRITERIA = createField(DSL.name("search_criteria"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField SEARCH_CRITERIA = createField(DSL.name("search_criteria"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.filter_condition.negative. */ - public final TableField NEGATIVE = createField(DSL.name("negative"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, ""); + public final TableField NEGATIVE = createField(DSL.name("negative"), SQLDataType.BOOLEAN.nullable(false), this, ""); - /** - * Create a public.filter_condition table reference - */ - public JFilterCondition() { - this(DSL.name("filter_condition"), null); + private JFilterCondition(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JFilterCondition(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -109,31 +112,59 @@ public JFilterCondition(Name alias) { this(alias, FILTER_CONDITION); } - private JFilterCondition(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.filter_condition table reference + */ + public JFilterCondition() { + this(DSL.name("filter_condition"), null); } - private JFilterCondition(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JFilterCondition(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, FILTER_CONDITION); } - public JFilterCondition(Table child, ForeignKey key) { - super(child, key, FILTER_CONDITION); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JFilterConditionPath extends JFilterCondition implements Path { + + private static final long serialVersionUID = 1L; + public JFilterConditionPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JFilterConditionPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JFilterConditionPath as(String alias) { + return new JFilterConditionPath(DSL.name(alias), this); + } + + @Override + public JFilterConditionPath as(Name alias) { + return new JFilterConditionPath(alias, this); + } + + @Override + public JFilterConditionPath as(Table alias) { + return new JFilterConditionPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.FILTER_COND_FILTER_IDX, Indexes.FILTER_CONDITION_PK); + return Arrays.asList(Indexes.FILTER_COND_FILTER_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_FILTER_CONDITION; + return (Identity) super.getIdentity(); } @Override @@ -141,18 +172,21 @@ public UniqueKey getPrimaryKey() { return Keys.FILTER_CONDITION_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.FILTER_CONDITION_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY); + return Arrays.asList(Keys.FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY); } - public JFilter filter() { - return new JFilter(this, Keys.FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY); + private transient JFilterPath _filter; + + /** + * Get the implicit join path to the public.filter table. + */ + public JFilterPath filter() { + if (_filter == null) + _filter = new JFilterPath(this, Keys.FILTER_CONDITION__FILTER_CONDITION_FILTER_ID_FKEY, null); + + return _filter; } @Override @@ -165,6 +199,11 @@ public JFilterCondition as(Name alias) { return new JFilterCondition(alias, this); } + @Override + public JFilterCondition as(Table alias) { + return new JFilterCondition(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -181,12 +220,95 @@ public JFilterCondition rename(Name name) { return new JFilterCondition(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JFilterCondition rename(Table name) { + return new JFilterCondition(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterCondition where(Condition condition) { + return new JFilterCondition(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JFilterCondition where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterCondition where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterCondition where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterCondition where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterCondition where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterCondition where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterCondition where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterCondition whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public JFilterCondition whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterSort.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterSort.java index 9ceedb7f7..16c31258a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterSort.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JFilterSort.java @@ -8,42 +8,44 @@ import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JSortDirectionEnum; +import com.epam.ta.reportportal.jooq.tables.JFilter.JFilterPath; import com.epam.ta.reportportal.jooq.tables.records.JFilterSortRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JFilterSort extends TableImpl { - private static final long serialVersionUID = -796123697; + private static final long serialVersionUID = 1L; /** * The reference instance of public.filter_sort @@ -61,28 +63,29 @@ public Class getRecordType() { /** * The column public.filter_sort.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('filter_sort_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.filter_sort.filter_id. */ - public final TableField FILTER_ID = createField(DSL.name("filter_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField FILTER_ID = createField(DSL.name("filter_id"), SQLDataType.BIGINT, this, ""); /** * The column public.filter_sort.field. */ - public final TableField FIELD = createField(DSL.name("field"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField FIELD = createField(DSL.name("field"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.filter_sort.direction. */ - public final TableField DIRECTION = createField(DSL.name("direction"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'ASC'::sort_direction_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JSortDirectionEnum.class), this, ""); + public final TableField DIRECTION = createField(DSL.name("direction"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field(DSL.raw("'ASC'::sort_direction_enum"), SQLDataType.VARCHAR)).asEnumDataType(JSortDirectionEnum.class), this, ""); - /** - * Create a public.filter_sort table reference - */ - public JFilterSort() { - this(DSL.name("filter_sort"), null); + private JFilterSort(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JFilterSort(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -99,31 +102,59 @@ public JFilterSort(Name alias) { this(alias, FILTER_SORT); } - private JFilterSort(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.filter_sort table reference + */ + public JFilterSort() { + this(DSL.name("filter_sort"), null); } - private JFilterSort(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JFilterSort(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, FILTER_SORT); } - public JFilterSort(Table child, ForeignKey key) { - super(child, key, FILTER_SORT); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JFilterSortPath extends JFilterSort implements Path { + + private static final long serialVersionUID = 1L; + public JFilterSortPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JFilterSortPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JFilterSortPath as(String alias) { + return new JFilterSortPath(DSL.name(alias), this); + } + + @Override + public JFilterSortPath as(Name alias) { + return new JFilterSortPath(alias, this); + } + + @Override + public JFilterSortPath as(Table alias) { + return new JFilterSortPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.FILTER_SORT_FILTER_IDX, Indexes.FILTER_SORT_PK); + return Arrays.asList(Indexes.FILTER_SORT_FILTER_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_FILTER_SORT; + return (Identity) super.getIdentity(); } @Override @@ -131,18 +162,21 @@ public UniqueKey getPrimaryKey() { return Keys.FILTER_SORT_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.FILTER_SORT_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY); + return Arrays.asList(Keys.FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY); } - public JFilter filter() { - return new JFilter(this, Keys.FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY); + private transient JFilterPath _filter; + + /** + * Get the implicit join path to the public.filter table. + */ + public JFilterPath filter() { + if (_filter == null) + _filter = new JFilterPath(this, Keys.FILTER_SORT__FILTER_SORT_FILTER_ID_FKEY, null); + + return _filter; } @Override @@ -155,6 +189,11 @@ public JFilterSort as(Name alias) { return new JFilterSort(alias, this); } + @Override + public JFilterSort as(Table alias) { + return new JFilterSort(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -171,12 +210,95 @@ public JFilterSort rename(Name name) { return new JFilterSort(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JFilterSort rename(Table name) { + return new JFilterSort(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterSort where(Condition condition) { + return new JFilterSort(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JFilterSort where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterSort where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterSort where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterSort where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterSort where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterSort where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JFilterSort where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JFilterSort whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JFilterSort whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegration.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegration.java index 5c3c5ad5a..40f617074 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegration.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegration.java @@ -8,44 +8,47 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JIntegrationType.JIntegrationTypePath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; import com.epam.ta.reportportal.jooq.tables.records.JIntegrationRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row8; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIntegration extends TableImpl { - private static final long serialVersionUID = -1251108530; + private static final long serialVersionUID = 1L; /** * The reference instance of public.integration @@ -63,48 +66,49 @@ public Class getRecordType() { /** * The column public.integration.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('integration_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column public.integration.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.integration.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT, this, ""); /** * The column public.integration.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.INTEGER, this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.INTEGER, this, ""); /** * The column public.integration.enabled. */ - public final TableField ENABLED = createField(DSL.name("enabled"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, ""); + public final TableField ENABLED = createField(DSL.name("enabled"), SQLDataType.BOOLEAN.nullable(false), this, ""); /** * The column public.integration.params. */ - public final TableField PARAMS = createField(DSL.name("params"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField PARAMS = createField(DSL.name("params"), SQLDataType.JSONB, this, ""); /** * The column public.integration.creator. */ - public final TableField CREATOR = createField(DSL.name("creator"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField CREATOR = createField(DSL.name("creator"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.integration.creation_date. */ - public final TableField CREATION_DATE = createField(DSL.name("creation_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); - /** - * Create a public.integration table reference - */ - public JIntegration() { - this(DSL.name("integration"), null); + private JIntegration(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIntegration(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -121,31 +125,59 @@ public JIntegration(Name alias) { this(alias, INTEGRATION); } - private JIntegration(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.integration table reference + */ + public JIntegration() { + this(DSL.name("integration"), null); } - private JIntegration(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIntegration(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, INTEGRATION); } - public JIntegration(Table child, ForeignKey key) { - super(child, key, INTEGRATION); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIntegrationPath extends JIntegration implements Path { + + private static final long serialVersionUID = 1L; + public JIntegrationPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIntegrationPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIntegrationPath as(String alias) { + return new JIntegrationPath(DSL.name(alias), this); + } + + @Override + public JIntegrationPath as(Name alias) { + return new JIntegrationPath(alias, this); + } + + @Override + public JIntegrationPath as(Table alias) { + return new JIntegrationPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.INTEGR_PROJECT_IDX, Indexes.INTEGRATION_PK, Indexes.UNIQUE_GLOBAL_INTEGRATION_NAME, Indexes.UNIQUE_PROJECT_INTEGRATION_NAME); + return Arrays.asList(Indexes.INTEGR_PROJECT_IDX, Indexes.UNIQUE_GLOBAL_INTEGRATION_NAME, Indexes.UNIQUE_PROJECT_INTEGRATION_NAME); } @Override public Identity getIdentity() { - return Keys.IDENTITY_INTEGRATION; + return (Identity) super.getIdentity(); } @Override @@ -153,22 +185,34 @@ public UniqueKey getPrimaryKey() { return Keys.INTEGRATION_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.INTEGRATION_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.INTEGRATION__INTEGRATION_PROJECT_ID_FKEY, Keys.INTEGRATION__INTEGRATION_TYPE_FKEY); + return Arrays.asList(Keys.INTEGRATION__INTEGRATION_PROJECT_ID_FKEY, Keys.INTEGRATION__INTEGRATION_TYPE_FKEY); } - public JProject project() { - return new JProject(this, Keys.INTEGRATION__INTEGRATION_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.INTEGRATION__INTEGRATION_PROJECT_ID_FKEY, null); + + return _project; } - public JIntegrationType integrationType() { - return new JIntegrationType(this, Keys.INTEGRATION__INTEGRATION_TYPE_FKEY); + private transient JIntegrationTypePath _integrationType; + + /** + * Get the implicit join path to the public.integration_type + * table. + */ + public JIntegrationTypePath integrationType() { + if (_integrationType == null) + _integrationType = new JIntegrationTypePath(this, Keys.INTEGRATION__INTEGRATION_TYPE_FKEY, null); + + return _integrationType; } @Override @@ -181,6 +225,11 @@ public JIntegration as(Name alias) { return new JIntegration(alias, this); } + @Override + public JIntegration as(Table alias) { + return new JIntegration(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -197,12 +246,95 @@ public JIntegration rename(Name name) { return new JIntegration(name, null); } - // ------------------------------------------------------------------------- - // Row8 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIntegration rename(Table name) { + return new JIntegration(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegration where(Condition condition) { + return new JIntegration(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JIntegration where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegration where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegration where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegration where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegration where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegration where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegration where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegration whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); + public JIntegration whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegrationType.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegrationType.java index 800259f6b..932de5e13 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegrationType.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIntegrationType.java @@ -5,49 +5,49 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JIntegrationAuthFlowEnum; import com.epam.ta.reportportal.jooq.enums.JIntegrationGroupEnum; +import com.epam.ta.reportportal.jooq.tables.JIntegration.JIntegrationPath; import com.epam.ta.reportportal.jooq.tables.records.JIntegrationTypeRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row7; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIntegrationType extends TableImpl { - private static final long serialVersionUID = 884680057; + private static final long serialVersionUID = 1L; /** * The reference instance of public.integration_type @@ -65,43 +65,44 @@ public Class getRecordType() { /** * The column public.integration_type.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('integration_type_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column public.integration_type.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column public.integration_type.auth_flow. */ - public final TableField AUTH_FLOW = createField(DSL.name("auth_flow"), org.jooq.impl.SQLDataType.VARCHAR.asEnumDataType(com.epam.ta.reportportal.jooq.enums.JIntegrationAuthFlowEnum.class), this, ""); + public final TableField AUTH_FLOW = createField(DSL.name("auth_flow"), SQLDataType.VARCHAR.asEnumDataType(JIntegrationAuthFlowEnum.class), this, ""); /** * The column public.integration_type.creation_date. */ - public final TableField CREATION_DATE = createField(DSL.name("creation_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.integration_type.group_type. */ - public final TableField GROUP_TYPE = createField(DSL.name("group_type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JIntegrationGroupEnum.class), this, ""); + public final TableField GROUP_TYPE = createField(DSL.name("group_type"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JIntegrationGroupEnum.class), this, ""); /** * The column public.integration_type.enabled. */ - public final TableField ENABLED = createField(DSL.name("enabled"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, ""); + public final TableField ENABLED = createField(DSL.name("enabled"), SQLDataType.BOOLEAN.nullable(false), this, ""); /** * The column public.integration_type.details. */ - public final TableField DETAILS = createField(DSL.name("details"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField DETAILS = createField(DSL.name("details"), SQLDataType.JSONB, this, ""); - /** - * Create a public.integration_type table reference - */ - public JIntegrationType() { - this(DSL.name("integration_type"), null); + private JIntegrationType(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIntegrationType(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -118,31 +119,54 @@ public JIntegrationType(Name alias) { this(alias, INTEGRATION_TYPE); } - private JIntegrationType(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.integration_type table reference + */ + public JIntegrationType() { + this(DSL.name("integration_type"), null); } - private JIntegrationType(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIntegrationType(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, INTEGRATION_TYPE); } - public JIntegrationType(Table child, ForeignKey key) { - super(child, key, INTEGRATION_TYPE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIntegrationTypePath extends JIntegrationType implements Path { + + private static final long serialVersionUID = 1L; + public JIntegrationTypePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIntegrationTypePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIntegrationTypePath as(String alias) { + return new JIntegrationTypePath(DSL.name(alias), this); + } + + @Override + public JIntegrationTypePath as(Name alias) { + return new JIntegrationTypePath(alias, this); + } + + @Override + public JIntegrationTypePath as(Table alias) { + return new JIntegrationTypePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.INTEGRATION_TYPE_NAME_KEY, Indexes.INTEGRATION_TYPE_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_INTEGRATION_TYPE; + return (Identity) super.getIdentity(); } @Override @@ -151,8 +175,21 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.INTEGRATION_TYPE_PK, Keys.INTEGRATION_TYPE_NAME_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.INTEGRATION_TYPE_NAME_KEY); + } + + private transient JIntegrationPath _integration; + + /** + * Get the implicit to-many join path to the public.integration + * table + */ + public JIntegrationPath integration() { + if (_integration == null) + _integration = new JIntegrationPath(this, null, Keys.INTEGRATION__INTEGRATION_TYPE_FKEY.getInverseKey()); + + return _integration; } @Override @@ -165,6 +202,11 @@ public JIntegrationType as(Name alias) { return new JIntegrationType(alias, this); } + @Override + public JIntegrationType as(Table alias) { + return new JIntegrationType(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -181,12 +223,95 @@ public JIntegrationType rename(Name name) { return new JIntegrationType(name, null); } - // ------------------------------------------------------------------------- - // Row7 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIntegrationType rename(Table name) { + return new JIntegrationType(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegrationType where(Condition condition) { + return new JIntegrationType(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JIntegrationType where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegrationType where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegrationType where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegrationType where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegrationType where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegrationType where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIntegrationType where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIntegrationType whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public JIntegrationType whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssue.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssue.java index a555c4326..0b86ee73f 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssue.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssue.java @@ -7,41 +7,46 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JIssueTicket.JIssueTicketPath; +import com.epam.ta.reportportal.jooq.tables.JIssueType.JIssueTypePath; +import com.epam.ta.reportportal.jooq.tables.JTestItemResults.JTestItemResultsPath; +import com.epam.ta.reportportal.jooq.tables.JTicket.JTicketPath; import com.epam.ta.reportportal.jooq.tables.records.JIssueRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIssue extends TableImpl { - private static final long serialVersionUID = -877705555; + private static final long serialVersionUID = 1L; /** * The reference instance of public.issue @@ -59,33 +64,34 @@ public Class getRecordType() { /** * The column public.issue.issue_id. */ - public final TableField ISSUE_ID = createField(DSL.name("issue_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ISSUE_ID = createField(DSL.name("issue_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.issue.issue_type. */ - public final TableField ISSUE_TYPE = createField(DSL.name("issue_type"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ISSUE_TYPE = createField(DSL.name("issue_type"), SQLDataType.BIGINT, this, ""); /** * The column public.issue.issue_description. */ - public final TableField ISSUE_DESCRIPTION = createField(DSL.name("issue_description"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField ISSUE_DESCRIPTION = createField(DSL.name("issue_description"), SQLDataType.CLOB, this, ""); /** * The column public.issue.auto_analyzed. */ - public final TableField AUTO_ANALYZED = createField(DSL.name("auto_analyzed"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField AUTO_ANALYZED = createField(DSL.name("auto_analyzed"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.issue.ignore_analyzer. */ - public final TableField IGNORE_ANALYZER = createField(DSL.name("ignore_analyzer"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField IGNORE_ANALYZER = createField(DSL.name("ignore_analyzer"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - /** - * Create a public.issue table reference - */ - public JIssue() { - this(DSL.name("issue"), null); + private JIssue(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIssue(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -102,26 +108,54 @@ public JIssue(Name alias) { this(alias, ISSUE); } - private JIssue(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.issue table reference + */ + public JIssue() { + this(DSL.name("issue"), null); } - private JIssue(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIssue(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ISSUE); } - public JIssue(Table child, ForeignKey key) { - super(child, key, ISSUE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIssuePath extends JIssue implements Path { + + private static final long serialVersionUID = 1L; + public JIssuePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIssuePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIssuePath as(String alias) { + return new JIssuePath(DSL.name(alias), this); + } + + @Override + public JIssuePath as(Name alias) { + return new JIssuePath(alias, this); + } + + @Override + public JIssuePath as(Table alias) { + return new JIssuePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.ISSUE_IT_IDX, Indexes.ISSUE_PK); + return Arrays.asList(Indexes.ISSUE_IT_IDX); } @Override @@ -130,21 +164,54 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.ISSUE_PK); + public List> getReferences() { + return Arrays.asList(Keys.ISSUE__ISSUE_ISSUE_ID_FKEY, Keys.ISSUE__ISSUE_ISSUE_TYPE_FKEY); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.ISSUE__ISSUE_ISSUE_ID_FKEY, Keys.ISSUE__ISSUE_ISSUE_TYPE_FKEY); + private transient JTestItemResultsPath _testItemResults; + + /** + * Get the implicit join path to the public.test_item_results + * table. + */ + public JTestItemResultsPath testItemResults() { + if (_testItemResults == null) + _testItemResults = new JTestItemResultsPath(this, Keys.ISSUE__ISSUE_ISSUE_ID_FKEY, null); + + return _testItemResults; } - public JTestItemResults testItemResults() { - return new JTestItemResults(this, Keys.ISSUE__ISSUE_ISSUE_ID_FKEY); + private transient JIssueTypePath _issueType; + + /** + * Get the implicit join path to the public.issue_type table. + */ + public JIssueTypePath issueType() { + if (_issueType == null) + _issueType = new JIssueTypePath(this, Keys.ISSUE__ISSUE_ISSUE_TYPE_FKEY, null); + + return _issueType; } - public JIssueType issueType() { - return new JIssueType(this, Keys.ISSUE__ISSUE_ISSUE_TYPE_FKEY); + private transient JIssueTicketPath _issueTicket; + + /** + * Get the implicit to-many join path to the + * public.issue_ticket table + */ + public JIssueTicketPath issueTicket() { + if (_issueTicket == null) + _issueTicket = new JIssueTicketPath(this, null, Keys.ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY.getInverseKey()); + + return _issueTicket; + } + + /** + * Get the implicit many-to-many join path to the public.ticket + * table + */ + public JTicketPath ticket() { + return issueTicket().ticket(); } @Override @@ -157,6 +224,11 @@ public JIssue as(Name alias) { return new JIssue(alias, this); } + @Override + public JIssue as(Table alias) { + return new JIssue(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -173,12 +245,95 @@ public JIssue rename(Name name) { return new JIssue(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIssue rename(Table name) { + return new JIssue(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JIssue where(Condition condition) { + return new JIssue(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssue where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssue where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssue where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssue where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssue where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssue where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssue where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssue whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public JIssue whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueGroup.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueGroup.java index 832c0dd4d..0876c9aa0 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueGroup.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueGroup.java @@ -4,46 +4,44 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JIssueGroupEnum; +import com.epam.ta.reportportal.jooq.tables.JIssueType.JIssueTypePath; import com.epam.ta.reportportal.jooq.tables.records.JIssueGroupRecord; -import java.util.Arrays; -import java.util.List; - -import javax.annotation.processing.Generated; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIssueGroup extends TableImpl { - private static final long serialVersionUID = -124161300; + private static final long serialVersionUID = 1L; /** * The reference instance of public.issue_group @@ -61,18 +59,19 @@ public Class getRecordType() { /** * The column public.issue_group.issue_group_id. */ - public final TableField ISSUE_GROUP_ID = createField(DSL.name("issue_group_id"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('issue_group_issue_group_id_seq'::regclass)", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); + public final TableField ISSUE_GROUP_ID = createField(DSL.name("issue_group_id"), SQLDataType.SMALLINT.nullable(false).identity(true), this, ""); /** * The column public.issue_group.issue_group. */ - public final TableField ISSUE_GROUP_ = createField(DSL.name("issue_group"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JIssueGroupEnum.class), this, ""); + public final TableField ISSUE_GROUP_ = createField(DSL.name("issue_group"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JIssueGroupEnum.class), this, ""); - /** - * Create a public.issue_group table reference - */ - public JIssueGroup() { - this(DSL.name("issue_group"), null); + private JIssueGroup(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIssueGroup(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -89,31 +88,54 @@ public JIssueGroup(Name alias) { this(alias, ISSUE_GROUP); } - private JIssueGroup(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.issue_group table reference + */ + public JIssueGroup() { + this(DSL.name("issue_group"), null); } - private JIssueGroup(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIssueGroup(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ISSUE_GROUP); } - public JIssueGroup(Table child, ForeignKey key) { - super(child, key, ISSUE_GROUP); - } + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIssueGroupPath extends JIssueGroup implements Path { - @Override - public Schema getSchema() { - return JPublic.PUBLIC; + private static final long serialVersionUID = 1L; + public JIssueGroupPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIssueGroupPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIssueGroupPath as(String alias) { + return new JIssueGroupPath(DSL.name(alias), this); + } + + @Override + public JIssueGroupPath as(Name alias) { + return new JIssueGroupPath(alias, this); + } + + @Override + public JIssueGroupPath as(Table alias) { + return new JIssueGroupPath(alias.getQualifiedName(), this); + } } @Override - public List getIndexes() { - return Arrays.asList(Indexes.ISSUE_GROUP_PK); + public Schema getSchema() { + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_ISSUE_GROUP; + return (Identity) super.getIdentity(); } @Override @@ -121,9 +143,17 @@ public UniqueKey getPrimaryKey() { return Keys.ISSUE_GROUP_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ISSUE_GROUP_PK); + private transient JIssueTypePath _issueType; + + /** + * Get the implicit to-many join path to the public.issue_type + * table + */ + public JIssueTypePath issueType() { + if (_issueType == null) + _issueType = new JIssueTypePath(this, null, Keys.ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY.getInverseKey()); + + return _issueType; } @Override @@ -136,6 +166,11 @@ public JIssueGroup as(Name alias) { return new JIssueGroup(alias, this); } + @Override + public JIssueGroup as(Table alias) { + return new JIssueGroup(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -152,12 +187,95 @@ public JIssueGroup rename(Name name) { return new JIssueGroup(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIssueGroup rename(Table name) { + return new JIssueGroup(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueGroup where(Condition condition) { + return new JIssueGroup(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueGroup where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueGroup where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueGroup where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueGroup where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueGroup where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueGroup where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueGroup where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueGroup whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JIssueGroup whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTicket.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTicket.java index 8c46bcd46..78f3710d0 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTicket.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTicket.java @@ -4,44 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JIssue.JIssuePath; +import com.epam.ta.reportportal.jooq.tables.JTicket.JTicketPath; import com.epam.ta.reportportal.jooq.tables.records.JIssueTicketRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIssueTicket extends TableImpl { - private static final long serialVersionUID = -1026586967; + private static final long serialVersionUID = 1L; /** * The reference instance of public.issue_ticket @@ -59,18 +60,19 @@ public Class getRecordType() { /** * The column public.issue_ticket.issue_id. */ - public final TableField ISSUE_ID = createField(DSL.name("issue_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ISSUE_ID = createField(DSL.name("issue_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.issue_ticket.ticket_id. */ - public final TableField TICKET_ID = createField(DSL.name("ticket_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField TICKET_ID = createField(DSL.name("ticket_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.issue_ticket table reference - */ - public JIssueTicket() { - this(DSL.name("issue_ticket"), null); + private JIssueTicket(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIssueTicket(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -87,26 +89,49 @@ public JIssueTicket(Name alias) { this(alias, ISSUE_TICKET); } - private JIssueTicket(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.issue_ticket table reference + */ + public JIssueTicket() { + this(DSL.name("issue_ticket"), null); } - private JIssueTicket(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIssueTicket(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ISSUE_TICKET); } - public JIssueTicket(Table child, ForeignKey key) { - super(child, key, ISSUE_TICKET); - } + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIssueTicketPath extends JIssueTicket implements Path { - @Override - public Schema getSchema() { - return JPublic.PUBLIC; + private static final long serialVersionUID = 1L; + public JIssueTicketPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIssueTicketPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIssueTicketPath as(String alias) { + return new JIssueTicketPath(DSL.name(alias), this); + } + + @Override + public JIssueTicketPath as(Name alias) { + return new JIssueTicketPath(alias, this); + } + + @Override + public JIssueTicketPath as(Table alias) { + return new JIssueTicketPath(alias.getQualifiedName(), this); + } } @Override - public List getIndexes() { - return Arrays.asList(Indexes.ISSUE_TICKET_PK); + public Schema getSchema() { + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -114,22 +139,33 @@ public UniqueKey getPrimaryKey() { return Keys.ISSUE_TICKET_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ISSUE_TICKET_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY, Keys.ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY); + return Arrays.asList(Keys.ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY, Keys.ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY); } - public JIssue issue() { - return new JIssue(this, Keys.ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY); + private transient JIssuePath _issue; + + /** + * Get the implicit join path to the public.issue table. + */ + public JIssuePath issue() { + if (_issue == null) + _issue = new JIssuePath(this, Keys.ISSUE_TICKET__ISSUE_TICKET_ISSUE_ID_FKEY, null); + + return _issue; } - public JTicket ticket() { - return new JTicket(this, Keys.ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY); + private transient JTicketPath _ticket; + + /** + * Get the implicit join path to the public.ticket table. + */ + public JTicketPath ticket() { + if (_ticket == null) + _ticket = new JTicketPath(this, Keys.ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY, null); + + return _ticket; } @Override @@ -142,6 +178,11 @@ public JIssueTicket as(Name alias) { return new JIssueTicket(alias, this); } + @Override + public JIssueTicket as(Table alias) { + return new JIssueTicket(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -158,12 +199,95 @@ public JIssueTicket rename(Name name) { return new JIssueTicket(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIssueTicket rename(Table name) { + return new JIssueTicket(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTicket where(Condition condition) { + return new JIssueTicket(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTicket where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTicket where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTicket where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTicket where(SQL condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTicket where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTicket where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTicket where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTicket whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JIssueTicket whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueType.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueType.java index b8b906523..b50014a54 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueType.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueType.java @@ -7,42 +7,47 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JIssue.JIssuePath; +import com.epam.ta.reportportal.jooq.tables.JIssueGroup.JIssueGroupPath; +import com.epam.ta.reportportal.jooq.tables.JIssueTypeProject.JIssueTypeProjectPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; import com.epam.ta.reportportal.jooq.tables.records.JIssueTypeRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIssueType extends TableImpl { - private static final long serialVersionUID = -1978728165; + private static final long serialVersionUID = 1L; /** * The reference instance of public.issue_type @@ -60,38 +65,39 @@ public Class getRecordType() { /** * The column public.issue_type.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('issue_type_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.issue_type.issue_group_id. */ - public final TableField ISSUE_GROUP_ID = createField(DSL.name("issue_group_id"), org.jooq.impl.SQLDataType.SMALLINT, this, ""); + public final TableField ISSUE_GROUP_ID = createField(DSL.name("issue_group_id"), SQLDataType.SMALLINT, this, ""); /** * The column public.issue_type.locator. */ - public final TableField LOCATOR = createField(DSL.name("locator"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, ""); + public final TableField LOCATOR = createField(DSL.name("locator"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** * The column public.issue_type.issue_name. */ - public final TableField ISSUE_NAME = createField(DSL.name("issue_name"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField ISSUE_NAME = createField(DSL.name("issue_name"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.issue_type.abbreviation. */ - public final TableField ABBREVIATION = createField(DSL.name("abbreviation"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, ""); + public final TableField ABBREVIATION = createField(DSL.name("abbreviation"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** * The column public.issue_type.hex_color. */ - public final TableField HEX_COLOR = createField(DSL.name("hex_color"), org.jooq.impl.SQLDataType.VARCHAR(7).nullable(false), this, ""); + public final TableField HEX_COLOR = createField(DSL.name("hex_color"), SQLDataType.VARCHAR(7).nullable(false), this, ""); - /** - * Create a public.issue_type table reference - */ - public JIssueType() { - this(DSL.name("issue_type"), null); + private JIssueType(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIssueType(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -108,31 +114,59 @@ public JIssueType(Name alias) { this(alias, ISSUE_TYPE); } - private JIssueType(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.issue_type table reference + */ + public JIssueType() { + this(DSL.name("issue_type"), null); } - private JIssueType(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIssueType(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ISSUE_TYPE); } - public JIssueType(Table child, ForeignKey key) { - super(child, key, ISSUE_TYPE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIssueTypePath extends JIssueType implements Path { + + private static final long serialVersionUID = 1L; + public JIssueTypePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIssueTypePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIssueTypePath as(String alias) { + return new JIssueTypePath(DSL.name(alias), this); + } + + @Override + public JIssueTypePath as(Name alias) { + return new JIssueTypePath(alias, this); + } + + @Override + public JIssueTypePath as(Table alias) { + return new JIssueTypePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.ISSUE_TYPE_GROUP_IDX, Indexes.ISSUE_TYPE_LOCATOR_KEY, Indexes.ISSUE_TYPE_PK); + return Arrays.asList(Indexes.ISSUE_TYPE_GROUP_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_ISSUE_TYPE; + return (Identity) super.getIdentity(); } @Override @@ -141,17 +175,58 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.ISSUE_TYPE_PK, Keys.ISSUE_TYPE_LOCATOR_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.ISSUE_TYPE_LOCATOR_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY); + return Arrays.asList(Keys.ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY); + } + + private transient JIssueGroupPath _issueGroup; + + /** + * Get the implicit join path to the public.issue_group table. + */ + public JIssueGroupPath issueGroup() { + if (_issueGroup == null) + _issueGroup = new JIssueGroupPath(this, Keys.ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY, null); + + return _issueGroup; } - public JIssueGroup issueGroup() { - return new JIssueGroup(this, Keys.ISSUE_TYPE__ISSUE_TYPE_ISSUE_GROUP_ID_FKEY); + private transient JIssuePath _issue; + + /** + * Get the implicit to-many join path to the public.issue table + */ + public JIssuePath issue() { + if (_issue == null) + _issue = new JIssuePath(this, null, Keys.ISSUE__ISSUE_ISSUE_TYPE_FKEY.getInverseKey()); + + return _issue; + } + + private transient JIssueTypeProjectPath _issueTypeProject; + + /** + * Get the implicit to-many join path to the + * public.issue_type_project table + */ + public JIssueTypeProjectPath issueTypeProject() { + if (_issueTypeProject == null) + _issueTypeProject = new JIssueTypeProjectPath(this, null, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY.getInverseKey()); + + return _issueTypeProject; + } + + /** + * Get the implicit many-to-many join path to the + * public.project table + */ + public JProjectPath project() { + return issueTypeProject().project(); } @Override @@ -164,6 +239,11 @@ public JIssueType as(Name alias) { return new JIssueType(alias, this); } + @Override + public JIssueType as(Table alias) { + return new JIssueType(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -180,12 +260,95 @@ public JIssueType rename(Name name) { return new JIssueType(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIssueType rename(Table name) { + return new JIssueType(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueType where(Condition condition) { + return new JIssueType(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueType where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueType where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueType where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueType where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueType where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueType where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueType where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueType whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public JIssueType whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTypeProject.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTypeProject.java index 4ecdc5792..738073393 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTypeProject.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JIssueTypeProject.java @@ -4,44 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JIssueType.JIssueTypePath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; import com.epam.ta.reportportal.jooq.tables.records.JIssueTypeProjectRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JIssueTypeProject extends TableImpl { - private static final long serialVersionUID = -184496297; + private static final long serialVersionUID = 1L; /** * The reference instance of public.issue_type_project @@ -59,18 +60,19 @@ public Class getRecordType() { /** * The column public.issue_type_project.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.issue_type_project.issue_type_id. */ - public final TableField ISSUE_TYPE_ID = createField(DSL.name("issue_type_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ISSUE_TYPE_ID = createField(DSL.name("issue_type_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.issue_type_project table reference - */ - public JIssueTypeProject() { - this(DSL.name("issue_type_project"), null); + private JIssueTypeProject(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JIssueTypeProject(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -87,26 +89,49 @@ public JIssueTypeProject(Name alias) { this(alias, ISSUE_TYPE_PROJECT); } - private JIssueTypeProject(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.issue_type_project table reference + */ + public JIssueTypeProject() { + this(DSL.name("issue_type_project"), null); } - private JIssueTypeProject(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JIssueTypeProject(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ISSUE_TYPE_PROJECT); } - public JIssueTypeProject(Table child, ForeignKey key) { - super(child, key, ISSUE_TYPE_PROJECT); - } + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JIssueTypeProjectPath extends JIssueTypeProject implements Path { - @Override - public Schema getSchema() { - return JPublic.PUBLIC; + private static final long serialVersionUID = 1L; + public JIssueTypeProjectPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JIssueTypeProjectPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JIssueTypeProjectPath as(String alias) { + return new JIssueTypeProjectPath(DSL.name(alias), this); + } + + @Override + public JIssueTypeProjectPath as(Name alias) { + return new JIssueTypeProjectPath(alias, this); + } + + @Override + public JIssueTypeProjectPath as(Table alias) { + return new JIssueTypeProjectPath(alias.getQualifiedName(), this); + } } @Override - public List getIndexes() { - return Arrays.asList(Indexes.ISSUE_TYPE_PROJECT_PK); + public Schema getSchema() { + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -114,22 +139,33 @@ public UniqueKey getPrimaryKey() { return Keys.ISSUE_TYPE_PROJECT_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ISSUE_TYPE_PROJECT_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY); + return Arrays.asList(Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY); } - public JProject project() { - return new JProject(this, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY); + private transient JIssueTypePath _issueType; + + /** + * Get the implicit join path to the public.issue_type table. + */ + public JIssueTypePath issueType() { + if (_issueType == null) + _issueType = new JIssueTypePath(this, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY, null); + + return _issueType; } - public JIssueType issueType() { - return new JIssueType(this, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_ISSUE_TYPE_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY, null); + + return _project; } @Override @@ -142,6 +178,11 @@ public JIssueTypeProject as(Name alias) { return new JIssueTypeProject(alias, this); } + @Override + public JIssueTypeProject as(Table alias) { + return new JIssueTypeProject(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -158,12 +199,95 @@ public JIssueTypeProject rename(Name name) { return new JIssueTypeProject(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JIssueTypeProject rename(Table name) { + return new JIssueTypeProject(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTypeProject where(Condition condition) { + return new JIssueTypeProject(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTypeProject where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTypeProject where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTypeProject where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTypeProject where(SQL condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTypeProject where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTypeProject where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JIssueTypeProject where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JIssueTypeProject whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JIssueTypeProject whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JItemAttribute.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JItemAttribute.java index 28fb6cedb..4ae1356e0 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JItemAttribute.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JItemAttribute.java @@ -7,42 +7,47 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JItemAttributeRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Check; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.Internal; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JItemAttribute extends TableImpl { - private static final long serialVersionUID = -425535120; + private static final long serialVersionUID = 1L; /** * The reference instance of public.item_attribute @@ -60,38 +65,39 @@ public Class getRecordType() { /** * The column public.item_attribute.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('item_attribute_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.item_attribute.key. */ - public final TableField KEY = createField(DSL.name("key"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR, this, ""); /** * The column public.item_attribute.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.item_attribute.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT, this, ""); /** * The column public.item_attribute.launch_id. */ - public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), SQLDataType.BIGINT, this, ""); /** * The column public.item_attribute.system. */ - public final TableField SYSTEM = createField(DSL.name("system"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField SYSTEM = createField(DSL.name("system"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); - /** - * Create a public.item_attribute table reference - */ - public JItemAttribute() { - this(DSL.name("item_attribute"), null); + private JItemAttribute(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JItemAttribute(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -108,31 +114,59 @@ public JItemAttribute(Name alias) { this(alias, ITEM_ATTRIBUTE); } - private JItemAttribute(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.item_attribute table reference + */ + public JItemAttribute() { + this(DSL.name("item_attribute"), null); } - private JItemAttribute(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JItemAttribute(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, ITEM_ATTRIBUTE); } - public JItemAttribute(Table child, ForeignKey key) { - super(child, key, ITEM_ATTRIBUTE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JItemAttributePath extends JItemAttribute implements Path { + + private static final long serialVersionUID = 1L; + public JItemAttributePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JItemAttributePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JItemAttributePath as(String alias) { + return new JItemAttributePath(DSL.name(alias), this); + } + + @Override + public JItemAttributePath as(Name alias) { + return new JItemAttributePath(alias, this); + } + + @Override + public JItemAttributePath as(Table alias) { + return new JItemAttributePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.ITEM_ATTR_LAUNCH_IDX, Indexes.ITEM_ATTR_TI_IDX, Indexes.ITEM_ATTRIBUTE_PK); + return Arrays.asList(Indexes.ITEM_ATTR_LAUNCH_IDX, Indexes.ITEM_ATTR_TI_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_ITEM_ATTRIBUTE; + return (Identity) super.getIdentity(); } @Override @@ -141,21 +175,39 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.ITEM_ATTRIBUTE_PK); + public List> getReferences() { + return Arrays.asList(Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY); + private transient JTestItemPath _testItem; + + /** + * Get the implicit join path to the public.test_item table. + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY, null); + + return _testItem; } - public JTestItem testItem() { - return new JTestItem(this, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY); + private transient JLaunchPath _launch; + + /** + * Get the implicit join path to the public.launch table. + */ + public JLaunchPath launch() { + if (_launch == null) + _launch = new JLaunchPath(this, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY, null); + + return _launch; } - public JLaunch launch() { - return new JLaunch(this, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY); + @Override + public List> getChecks() { + return Arrays.asList( + Internal.createCheck(this, DSL.name("item_attribute_check"), "((((item_id IS NOT NULL) AND (launch_id IS NULL)) OR ((item_id IS NULL) AND (launch_id IS NOT NULL))))", true) + ); } @Override @@ -168,6 +220,11 @@ public JItemAttribute as(Name alias) { return new JItemAttribute(alias, this); } + @Override + public JItemAttribute as(Table alias) { + return new JItemAttribute(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -184,12 +241,95 @@ public JItemAttribute rename(Name name) { return new JItemAttribute(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JItemAttribute rename(Table name) { + return new JItemAttribute(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JItemAttribute where(Condition condition) { + return new JItemAttribute(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JItemAttribute where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JItemAttribute where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JItemAttribute where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JItemAttribute where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JItemAttribute where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JItemAttribute where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JItemAttribute where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JItemAttribute whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public JItemAttribute whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunch.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunch.java index 772dba983..b0ae337c6 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunch.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunch.java @@ -11,43 +11,51 @@ import com.epam.ta.reportportal.jooq.enums.JLaunchModeEnum; import com.epam.ta.reportportal.jooq.enums.JRetentionPolicyEnum; import com.epam.ta.reportportal.jooq.enums.JStatusEnum; +import com.epam.ta.reportportal.jooq.tables.JItemAttribute.JItemAttributePath; +import com.epam.ta.reportportal.jooq.tables.JLog.JLogPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JStatistics.JStatisticsPath; +import com.epam.ta.reportportal.jooq.tables.JStatisticsField.JStatisticsFieldPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; +import com.epam.ta.reportportal.jooq.tables.JUsers.JUsersPath; import com.epam.ta.reportportal.jooq.tables.records.JLaunchRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row16; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JLaunch extends TableImpl { - private static final long serialVersionUID = -860672068; + private static final long serialVersionUID = 1L; /** * The reference instance of public.launch @@ -65,88 +73,89 @@ public Class getRecordType() { /** * The column public.launch.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('launch_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.launch.uuid. */ - public final TableField UUID = createField(DSL.name("uuid"), org.jooq.impl.SQLDataType.VARCHAR(36).nullable(false), this, ""); + public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.VARCHAR(36).nullable(false), this, ""); /** * The column public.launch.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.launch.user_id. */ - public final TableField USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.BIGINT, this, ""); /** * The column public.launch.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.launch.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); /** * The column public.launch.start_time. */ - public final TableField START_TIME = createField(DSL.name("start_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField START_TIME = createField(DSL.name("start_time"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.launch.end_time. */ - public final TableField END_TIME = createField(DSL.name("end_time"), org.jooq.impl.SQLDataType.TIMESTAMP, this, "", new JooqInstantConverter()); + public final TableField END_TIME = createField(DSL.name("end_time"), SQLDataType.LOCALDATETIME(6), this, "", new JooqInstantConverter()); /** * The column public.launch.number. */ - public final TableField NUMBER = createField(DSL.name("number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField NUMBER = createField(DSL.name("number"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column public.launch.last_modified. */ - public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.launch.mode. */ - public final TableField MODE = createField(DSL.name("mode"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JLaunchModeEnum.class), this, ""); + public final TableField MODE = createField(DSL.name("mode"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JLaunchModeEnum.class), this, ""); /** * The column public.launch.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JStatusEnum.class), this, ""); + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JStatusEnum.class), this, ""); /** * The column public.launch.has_retries. */ - public final TableField HAS_RETRIES = createField(DSL.name("has_retries"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField HAS_RETRIES = createField(DSL.name("has_retries"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.launch.rerun. */ - public final TableField RERUN = createField(DSL.name("rerun"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField RERUN = createField(DSL.name("rerun"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.launch.approximate_duration. */ - public final TableField APPROXIMATE_DURATION = createField(DSL.name("approximate_duration"), org.jooq.impl.SQLDataType.DOUBLE.defaultValue(org.jooq.impl.DSL.field("0.0", org.jooq.impl.SQLDataType.DOUBLE)), this, ""); + public final TableField APPROXIMATE_DURATION = createField(DSL.name("approximate_duration"), SQLDataType.DOUBLE.defaultValue(DSL.field(DSL.raw("0.0"), SQLDataType.DOUBLE)), this, ""); /** * The column public.launch.retention_policy. */ - public final TableField RETENTION_POLICY = createField(DSL.name("retention_policy"), org.jooq.impl.SQLDataType.VARCHAR.defaultValue(org.jooq.impl.DSL.field("'REGULAR'::retention_policy_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JRetentionPolicyEnum.class), this, ""); + public final TableField RETENTION_POLICY = createField(DSL.name("retention_policy"), SQLDataType.VARCHAR.defaultValue(DSL.field(DSL.raw("'REGULAR'::retention_policy_enum"), SQLDataType.VARCHAR)).asEnumDataType(JRetentionPolicyEnum.class), this, ""); - /** - * Create a public.launch table reference - */ - public JLaunch() { - this(DSL.name("launch"), null); + private JLaunch(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JLaunch(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -163,31 +172,59 @@ public JLaunch(Name alias) { this(alias, LAUNCH); } - private JLaunch(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.launch table reference + */ + public JLaunch() { + this(DSL.name("launch"), null); } - private JLaunch(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JLaunch(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, LAUNCH); } - public JLaunch(Table child, ForeignKey key) { - super(child, key, LAUNCH); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JLaunchPath extends JLaunch implements Path { + + private static final long serialVersionUID = 1L; + public JLaunchPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JLaunchPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JLaunchPath as(String alias) { + return new JLaunchPath(DSL.name(alias), this); + } + + @Override + public JLaunchPath as(Name alias) { + return new JLaunchPath(alias, this); + } + + @Override + public JLaunchPath as(Table alias) { + return new JLaunchPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.LAUNCH_PK, Indexes.LAUNCH_PROJECT_START_TIME_IDX, Indexes.LAUNCH_USER_IDX, Indexes.LAUNCH_UUID_KEY, Indexes.UNQ_NAME_NUMBER); + return Arrays.asList(Indexes.LAUNCH_PROJECT_START_TIME_IDX, Indexes.LAUNCH_USER_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_LAUNCH; + return (Identity) super.getIdentity(); } @Override @@ -196,21 +233,96 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.LAUNCH_PK, Keys.LAUNCH_UUID_KEY, Keys.UNQ_NAME_NUMBER); + public List> getUniqueKeys() { + return Arrays.asList(Keys.LAUNCH_UUID_KEY, Keys.UNQ_NAME_NUMBER); } @Override public List> getReferences() { - return Arrays.>asList(Keys.LAUNCH__LAUNCH_PROJECT_ID_FKEY, Keys.LAUNCH__LAUNCH_USER_ID_FKEY); + return Arrays.asList(Keys.LAUNCH__LAUNCH_PROJECT_ID_FKEY, Keys.LAUNCH__LAUNCH_USER_ID_FKEY); + } + + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.LAUNCH__LAUNCH_PROJECT_ID_FKEY, null); + + return _project; + } + + private transient JUsersPath _users; + + /** + * Get the implicit join path to the public.users table. + */ + public JUsersPath users() { + if (_users == null) + _users = new JUsersPath(this, Keys.LAUNCH__LAUNCH_USER_ID_FKEY, null); + + return _users; } - public JProject project() { - return new JProject(this, Keys.LAUNCH__LAUNCH_PROJECT_ID_FKEY); + private transient JItemAttributePath _itemAttribute; + + /** + * Get the implicit to-many join path to the + * public.item_attribute table + */ + public JItemAttributePath itemAttribute() { + if (_itemAttribute == null) + _itemAttribute = new JItemAttributePath(this, null, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_LAUNCH_ID_FKEY.getInverseKey()); + + return _itemAttribute; } - public JUsers users() { - return new JUsers(this, Keys.LAUNCH__LAUNCH_USER_ID_FKEY); + private transient JLogPath _log; + + /** + * Get the implicit to-many join path to the public.log table + */ + public JLogPath log() { + if (_log == null) + _log = new JLogPath(this, null, Keys.LOG__LOG_LAUNCH_ID_FKEY.getInverseKey()); + + return _log; + } + + private transient JStatisticsPath _statistics; + + /** + * Get the implicit to-many join path to the public.statistics + * table + */ + public JStatisticsPath statistics() { + if (_statistics == null) + _statistics = new JStatisticsPath(this, null, Keys.STATISTICS__STATISTICS_LAUNCH_ID_FKEY.getInverseKey()); + + return _statistics; + } + + private transient JTestItemPath _testItem; + + /** + * Get the implicit to-many join path to the public.test_item + * table + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, null, Keys.TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY.getInverseKey()); + + return _testItem; + } + + /** + * Get the implicit many-to-many join path to the + * public.statistics_field table + */ + public JStatisticsFieldPath statisticsField() { + return statistics().statisticsField(); } @Override @@ -223,6 +335,11 @@ public JLaunch as(Name alias) { return new JLaunch(alias, this); } + @Override + public JLaunch as(Table alias) { + return new JLaunch(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -239,12 +356,95 @@ public JLaunch rename(Name name) { return new JLaunch(name, null); } - // ------------------------------------------------------------------------- - // Row16 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JLaunch rename(Table name) { + return new JLaunch(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunch where(Condition condition) { + return new JLaunch(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunch where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunch where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunch where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunch where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunch where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunch where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunch where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunch whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row16 fieldsRow() { - return (Row16) super.fieldsRow(); + public JLaunch whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchAttributeRules.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchAttributeRules.java index cdf3dcb12..229de452f 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchAttributeRules.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchAttributeRules.java @@ -7,42 +7,44 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JSenderCase.JSenderCasePath; import com.epam.ta.reportportal.jooq.tables.records.JLaunchAttributeRulesRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JLaunchAttributeRules extends TableImpl { - private static final long serialVersionUID = 1014824139; + private static final long serialVersionUID = 1L; /** * The reference instance of public.launch_attribute_rules @@ -60,69 +62,100 @@ public Class getRecordType() { /** * The column public.launch_attribute_rules.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('launch_attribute_rules_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.launch_attribute_rules.sender_case_id. */ - public final TableField SENDER_CASE_ID = createField(DSL.name("sender_case_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField SENDER_CASE_ID = createField(DSL.name("sender_case_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.launch_attribute_rules.key. */ - public final TableField KEY = createField(DSL.name("key"), org.jooq.impl.SQLDataType.VARCHAR(512), this, ""); + public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR(512), this, ""); /** * The column public.launch_attribute_rules.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR(512).nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR(512).nullable(false), this, ""); - /** - * Create a public.launch_attribute_rules table reference - */ - public JLaunchAttributeRules() { - this(DSL.name("launch_attribute_rules"), null); + private JLaunchAttributeRules(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JLaunchAttributeRules(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** - * Create an aliased public.launch_attribute_rules table reference + * Create an aliased public.launch_attribute_rules table + * reference */ public JLaunchAttributeRules(String alias) { this(DSL.name(alias), LAUNCH_ATTRIBUTE_RULES); } /** - * Create an aliased public.launch_attribute_rules table reference + * Create an aliased public.launch_attribute_rules table + * reference */ public JLaunchAttributeRules(Name alias) { this(alias, LAUNCH_ATTRIBUTE_RULES); } - private JLaunchAttributeRules(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.launch_attribute_rules table reference + */ + public JLaunchAttributeRules() { + this(DSL.name("launch_attribute_rules"), null); } - private JLaunchAttributeRules(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JLaunchAttributeRules(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, LAUNCH_ATTRIBUTE_RULES); } - public JLaunchAttributeRules(Table child, ForeignKey key) { - super(child, key, LAUNCH_ATTRIBUTE_RULES); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JLaunchAttributeRulesPath extends JLaunchAttributeRules implements Path { + + private static final long serialVersionUID = 1L; + public JLaunchAttributeRulesPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JLaunchAttributeRulesPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JLaunchAttributeRulesPath as(String alias) { + return new JLaunchAttributeRulesPath(DSL.name(alias), this); + } + + @Override + public JLaunchAttributeRulesPath as(Name alias) { + return new JLaunchAttributeRulesPath(alias, this); + } + + @Override + public JLaunchAttributeRulesPath as(Table alias) { + return new JLaunchAttributeRulesPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.L_ATTR_RL_SEND_CASE_IDX, Indexes.LAUNCH_ATTRIBUTE_RULES_PK); + return Arrays.asList(Indexes.L_ATTR_RL_SEND_CASE_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_LAUNCH_ATTRIBUTE_RULES; + return (Identity) super.getIdentity(); } @Override @@ -130,18 +163,21 @@ public UniqueKey getPrimaryKey() { return Keys.LAUNCH_ATTRIBUTE_RULES_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.LAUNCH_ATTRIBUTE_RULES_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY); + return Arrays.asList(Keys.LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY); } - public JSenderCase senderCase() { - return new JSenderCase(this, Keys.LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY); + private transient JSenderCasePath _senderCase; + + /** + * Get the implicit join path to the public.sender_case table. + */ + public JSenderCasePath senderCase() { + if (_senderCase == null) + _senderCase = new JSenderCasePath(this, Keys.LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY, null); + + return _senderCase; } @Override @@ -154,6 +190,11 @@ public JLaunchAttributeRules as(Name alias) { return new JLaunchAttributeRules(alias, this); } + @Override + public JLaunchAttributeRules as(Table alias) { + return new JLaunchAttributeRules(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -170,12 +211,95 @@ public JLaunchAttributeRules rename(Name name) { return new JLaunchAttributeRules(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JLaunchAttributeRules rename(Table name) { + return new JLaunchAttributeRules(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchAttributeRules where(Condition condition) { + return new JLaunchAttributeRules(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchAttributeRules where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchAttributeRules where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchAttributeRules where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchAttributeRules where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchAttributeRules where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchAttributeRules where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchAttributeRules where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchAttributeRules whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JLaunchAttributeRules whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNames.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNames.java index 0488fb931..d35642100 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNames.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNames.java @@ -7,40 +7,42 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JSenderCase.JSenderCasePath; import com.epam.ta.reportportal.jooq.tables.records.JLaunchNamesRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JLaunchNames extends TableImpl { - private static final long serialVersionUID = 2113925870; + private static final long serialVersionUID = 1L; /** * The reference instance of public.launch_names @@ -58,18 +60,19 @@ public Class getRecordType() { /** * The column public.launch_names.sender_case_id. */ - public final TableField SENDER_CASE_ID = createField(DSL.name("sender_case_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField SENDER_CASE_ID = createField(DSL.name("sender_case_id"), SQLDataType.BIGINT, this, ""); /** * The column public.launch_names.launch_name. */ - public final TableField LAUNCH_NAME = createField(DSL.name("launch_name"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField LAUNCH_NAME = createField(DSL.name("launch_name"), SQLDataType.VARCHAR(256), this, ""); - /** - * Create a public.launch_names table reference - */ - public JLaunchNames() { - this(DSL.name("launch_names"), null); + private JLaunchNames(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JLaunchNames(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -86,35 +89,71 @@ public JLaunchNames(Name alias) { this(alias, LAUNCH_NAMES); } - private JLaunchNames(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.launch_names table reference + */ + public JLaunchNames() { + this(DSL.name("launch_names"), null); } - private JLaunchNames(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JLaunchNames(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, LAUNCH_NAMES); } - public JLaunchNames(Table child, ForeignKey key) { - super(child, key, LAUNCH_NAMES); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JLaunchNamesPath extends JLaunchNames implements Path { + + private static final long serialVersionUID = 1L; + public JLaunchNamesPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JLaunchNamesPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JLaunchNamesPath as(String alias) { + return new JLaunchNamesPath(DSL.name(alias), this); + } + + @Override + public JLaunchNamesPath as(Name alias) { + return new JLaunchNamesPath(alias, this); + } + + @Override + public JLaunchNamesPath as(Table alias) { + return new JLaunchNamesPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.LN_SEND_CASE_IDX); + return Arrays.asList(Indexes.LN_SEND_CASE_IDX); } @Override public List> getReferences() { - return Arrays.>asList(Keys.LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY); + return Arrays.asList(Keys.LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY); } - public JSenderCase senderCase() { - return new JSenderCase(this, Keys.LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY); + private transient JSenderCasePath _senderCase; + + /** + * Get the implicit join path to the public.sender_case table. + */ + public JSenderCasePath senderCase() { + if (_senderCase == null) + _senderCase = new JSenderCasePath(this, Keys.LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY, null); + + return _senderCase; } @Override @@ -127,6 +166,11 @@ public JLaunchNames as(Name alias) { return new JLaunchNames(alias, this); } + @Override + public JLaunchNames as(Table alias) { + return new JLaunchNames(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -143,12 +187,95 @@ public JLaunchNames rename(Name name) { return new JLaunchNames(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JLaunchNames rename(Table name) { + return new JLaunchNames(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNames where(Condition condition) { + return new JLaunchNames(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNames where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNames where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNames where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNames where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNames where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNames where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNames where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNames whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JLaunchNames whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNumber.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNumber.java index 55e1583b5..e10c127a7 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNumber.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLaunchNumber.java @@ -4,45 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; import com.epam.ta.reportportal.jooq.tables.records.JLaunchNumberRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JLaunchNumber extends TableImpl { - private static final long serialVersionUID = 1327480379; + private static final long serialVersionUID = 1L; /** * The reference instance of public.launch_number @@ -60,28 +60,29 @@ public Class getRecordType() { /** * The column public.launch_number.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('launch_number_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.launch_number.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.launch_number.launch_name. */ - public final TableField LAUNCH_NAME = createField(DSL.name("launch_name"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField LAUNCH_NAME = createField(DSL.name("launch_name"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.launch_number.number. */ - public final TableField NUMBER = createField(DSL.name("number"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField NUMBER = createField(DSL.name("number"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a public.launch_number table reference - */ - public JLaunchNumber() { - this(DSL.name("launch_number"), null); + private JLaunchNumber(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JLaunchNumber(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -98,31 +99,54 @@ public JLaunchNumber(Name alias) { this(alias, LAUNCH_NUMBER); } - private JLaunchNumber(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.launch_number table reference + */ + public JLaunchNumber() { + this(DSL.name("launch_number"), null); } - private JLaunchNumber(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JLaunchNumber(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, LAUNCH_NUMBER); } - public JLaunchNumber(Table child, ForeignKey key) { - super(child, key, LAUNCH_NUMBER); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JLaunchNumberPath extends JLaunchNumber implements Path { + + private static final long serialVersionUID = 1L; + public JLaunchNumberPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JLaunchNumberPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JLaunchNumberPath as(String alias) { + return new JLaunchNumberPath(DSL.name(alias), this); + } + + @Override + public JLaunchNumberPath as(Name alias) { + return new JLaunchNumberPath(alias, this); + } + + @Override + public JLaunchNumberPath as(Table alias) { + return new JLaunchNumberPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.LAUNCH_NUMBER_PK, Indexes.UNQ_PROJECT_NAME); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_LAUNCH_NUMBER; + return (Identity) super.getIdentity(); } @Override @@ -131,17 +155,25 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.LAUNCH_NUMBER_PK, Keys.UNQ_PROJECT_NAME); + public List> getUniqueKeys() { + return Arrays.asList(Keys.UNQ_PROJECT_NAME); } @Override public List> getReferences() { - return Arrays.>asList(Keys.LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY); + return Arrays.asList(Keys.LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY); } - public JProject project() { - return new JProject(this, Keys.LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY, null); + + return _project; } @Override @@ -154,6 +186,11 @@ public JLaunchNumber as(Name alias) { return new JLaunchNumber(alias, this); } + @Override + public JLaunchNumber as(Table alias) { + return new JLaunchNumber(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -170,12 +207,95 @@ public JLaunchNumber rename(Name name) { return new JLaunchNumber(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JLaunchNumber rename(Table name) { + return new JLaunchNumber(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNumber where(Condition condition) { + return new JLaunchNumber(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNumber where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNumber where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNumber where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNumber where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNumber where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNumber where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLaunchNumber where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLaunchNumber whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JLaunchNumber whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLog.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLog.java index de5e6009a..f1c5e1236 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JLog.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JLog.java @@ -8,43 +8,49 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JAttachment.JAttachmentPath; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JLogRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Check; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row11; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.Internal; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JLog extends TableImpl { - private static final long serialVersionUID = 2006866472; + private static final long serialVersionUID = 1L; /** * The reference instance of public.log @@ -62,63 +68,64 @@ public Class getRecordType() { /** * The column public.log.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('log_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.log.uuid. */ - public final TableField UUID = createField(DSL.name("uuid"), org.jooq.impl.SQLDataType.VARCHAR(36).nullable(false), this, ""); + public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.VARCHAR(36).nullable(false), this, ""); /** * The column public.log.log_time. */ - public final TableField LOG_TIME = createField(DSL.name("log_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField LOG_TIME = createField(DSL.name("log_time"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.log.log_message. */ - public final TableField LOG_MESSAGE = createField(DSL.name("log_message"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField LOG_MESSAGE = createField(DSL.name("log_message"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.log.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT, this, ""); /** * The column public.log.launch_id. */ - public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), SQLDataType.BIGINT, this, ""); /** * The column public.log.last_modified. */ - public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.log.log_level. */ - public final TableField LOG_LEVEL = createField(DSL.name("log_level"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField LOG_LEVEL = createField(DSL.name("log_level"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column public.log.attachment_id. */ - public final TableField ATTACHMENT_ID = createField(DSL.name("attachment_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ATTACHMENT_ID = createField(DSL.name("attachment_id"), SQLDataType.BIGINT, this, ""); /** * The column public.log.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.log.cluster_id. */ - public final TableField CLUSTER_ID = createField(DSL.name("cluster_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField CLUSTER_ID = createField(DSL.name("cluster_id"), SQLDataType.BIGINT, this, ""); - /** - * Create a public.log table reference - */ - public JLog() { - this(DSL.name("log"), null); + private JLog(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JLog(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -135,31 +142,59 @@ public JLog(Name alias) { this(alias, LOG); } - private JLog(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.log table reference + */ + public JLog() { + this(DSL.name("log"), null); } - private JLog(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JLog(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, LOG); } - public JLog(Table child, ForeignKey key) { - super(child, key, LOG); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JLogPath extends JLog implements Path { + + private static final long serialVersionUID = 1L; + public JLogPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JLogPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JLogPath as(String alias) { + return new JLogPath(DSL.name(alias), this); + } + + @Override + public JLogPath as(Name alias) { + return new JLogPath(alias, this); + } + + @Override + public JLogPath as(Table alias) { + return new JLogPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.LOG_ATTACH_ID_IDX, Indexes.LOG_CLUSTER_IDX, Indexes.LOG_LAUNCH_ID_IDX, Indexes.LOG_PK, Indexes.LOG_PROJECT_ID_LOG_TIME_IDX, Indexes.LOG_PROJECT_IDX, Indexes.LOG_TI_IDX); + return Arrays.asList(Indexes.LOG_ATTACH_ID_IDX, Indexes.LOG_CLUSTER_IDX, Indexes.LOG_LAUNCH_ID_IDX, Indexes.LOG_PROJECT_ID_LOG_TIME_IDX, Indexes.LOG_PROJECT_IDX, Indexes.LOG_TI_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_LOG; + return (Identity) super.getIdentity(); } @Override @@ -168,25 +203,51 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.LOG_PK); + public List> getReferences() { + return Arrays.asList(Keys.LOG__LOG_ATTACHMENT_ID_FKEY, Keys.LOG__LOG_ITEM_ID_FKEY, Keys.LOG__LOG_LAUNCH_ID_FKEY); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.LOG__LOG_ITEM_ID_FKEY, Keys.LOG__LOG_LAUNCH_ID_FKEY, Keys.LOG__LOG_ATTACHMENT_ID_FKEY); + private transient JAttachmentPath _attachment; + + /** + * Get the implicit join path to the public.attachment table. + */ + public JAttachmentPath attachment() { + if (_attachment == null) + _attachment = new JAttachmentPath(this, Keys.LOG__LOG_ATTACHMENT_ID_FKEY, null); + + return _attachment; } - public JTestItem testItem() { - return new JTestItem(this, Keys.LOG__LOG_ITEM_ID_FKEY); + private transient JTestItemPath _testItem; + + /** + * Get the implicit join path to the public.test_item table. + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, Keys.LOG__LOG_ITEM_ID_FKEY, null); + + return _testItem; } - public JLaunch launch() { - return new JLaunch(this, Keys.LOG__LOG_LAUNCH_ID_FKEY); + private transient JLaunchPath _launch; + + /** + * Get the implicit join path to the public.launch table. + */ + public JLaunchPath launch() { + if (_launch == null) + _launch = new JLaunchPath(this, Keys.LOG__LOG_LAUNCH_ID_FKEY, null); + + return _launch; } - public JAttachment attachment() { - return new JAttachment(this, Keys.LOG__LOG_ATTACHMENT_ID_FKEY); + @Override + public List> getChecks() { + return Arrays.asList( + Internal.createCheck(this, DSL.name("log_check"), "((((item_id IS NOT NULL) AND (launch_id IS NULL)) OR ((item_id IS NULL) AND (launch_id IS NOT NULL))))", true) + ); } @Override @@ -199,6 +260,11 @@ public JLog as(Name alias) { return new JLog(alias, this); } + @Override + public JLog as(Table alias) { + return new JLog(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -215,12 +281,95 @@ public JLog rename(Name name) { return new JLog(name, null); } - // ------------------------------------------------------------------------- - // Row11 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JLog rename(Table name) { + return new JLog(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLog where(Condition condition) { + return new JLog(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLog where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLog where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JLog where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLog where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLog where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLog where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JLog where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + /** + * Create an inline derived table from this table + */ + @Override + public JLog whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); + public JLog whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistration.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistration.java index 8aa550cad..702022649 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistration.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistration.java @@ -4,44 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JOauthRegistrationRestriction.JOauthRegistrationRestrictionPath; +import com.epam.ta.reportportal.jooq.tables.JOauthRegistrationScope.JOauthRegistrationScopePath; import com.epam.ta.reportportal.jooq.tables.records.JOauthRegistrationRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row12; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JOauthRegistration extends TableImpl { - private static final long serialVersionUID = -982956746; + private static final long serialVersionUID = 1L; /** * The reference instance of public.oauth_registration @@ -59,68 +60,70 @@ public Class getRecordType() { /** * The column public.oauth_registration.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** * The column public.oauth_registration.client_id. */ - public final TableField CLIENT_ID = createField(DSL.name("client_id"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField CLIENT_ID = createField(DSL.name("client_id"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column public.oauth_registration.client_secret. */ - public final TableField CLIENT_SECRET = createField(DSL.name("client_secret"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField CLIENT_SECRET = createField(DSL.name("client_secret"), SQLDataType.VARCHAR(256), this, ""); /** * The column public.oauth_registration.client_auth_method. */ - public final TableField CLIENT_AUTH_METHOD = createField(DSL.name("client_auth_method"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, ""); + public final TableField CLIENT_AUTH_METHOD = createField(DSL.name("client_auth_method"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** * The column public.oauth_registration.auth_grant_type. */ - public final TableField AUTH_GRANT_TYPE = createField(DSL.name("auth_grant_type"), org.jooq.impl.SQLDataType.VARCHAR(64), this, ""); + public final TableField AUTH_GRANT_TYPE = createField(DSL.name("auth_grant_type"), SQLDataType.VARCHAR(64), this, ""); /** * The column public.oauth_registration.redirect_uri_template. */ - public final TableField REDIRECT_URI_TEMPLATE = createField(DSL.name("redirect_uri_template"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField REDIRECT_URI_TEMPLATE = createField(DSL.name("redirect_uri_template"), SQLDataType.VARCHAR(256), this, ""); /** * The column public.oauth_registration.authorization_uri. */ - public final TableField AUTHORIZATION_URI = createField(DSL.name("authorization_uri"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField AUTHORIZATION_URI = createField(DSL.name("authorization_uri"), SQLDataType.VARCHAR(256), this, ""); /** * The column public.oauth_registration.token_uri. */ - public final TableField TOKEN_URI = createField(DSL.name("token_uri"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField TOKEN_URI = createField(DSL.name("token_uri"), SQLDataType.VARCHAR(256), this, ""); /** * The column public.oauth_registration.user_info_endpoint_uri. */ - public final TableField USER_INFO_ENDPOINT_URI = createField(DSL.name("user_info_endpoint_uri"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField USER_INFO_ENDPOINT_URI = createField(DSL.name("user_info_endpoint_uri"), SQLDataType.VARCHAR(256), this, ""); /** - * The column public.oauth_registration.user_info_endpoint_name_attr. + * The column + * public.oauth_registration.user_info_endpoint_name_attr. */ - public final TableField USER_INFO_ENDPOINT_NAME_ATTR = createField(DSL.name("user_info_endpoint_name_attr"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField USER_INFO_ENDPOINT_NAME_ATTR = createField(DSL.name("user_info_endpoint_name_attr"), SQLDataType.VARCHAR(256), this, ""); /** * The column public.oauth_registration.jwk_set_uri. */ - public final TableField JWK_SET_URI = createField(DSL.name("jwk_set_uri"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField JWK_SET_URI = createField(DSL.name("jwk_set_uri"), SQLDataType.VARCHAR(256), this, ""); /** * The column public.oauth_registration.client_name. */ - public final TableField CLIENT_NAME = createField(DSL.name("client_name"), org.jooq.impl.SQLDataType.VARCHAR(128), this, ""); + public final TableField CLIENT_NAME = createField(DSL.name("client_name"), SQLDataType.VARCHAR(128), this, ""); - /** - * Create a public.oauth_registration table reference - */ - public JOauthRegistration() { - this(DSL.name("oauth_registration"), null); + private JOauthRegistration(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JOauthRegistration(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -137,26 +140,49 @@ public JOauthRegistration(Name alias) { this(alias, OAUTH_REGISTRATION); } - private JOauthRegistration(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.oauth_registration table reference + */ + public JOauthRegistration() { + this(DSL.name("oauth_registration"), null); } - private JOauthRegistration(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JOauthRegistration(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, OAUTH_REGISTRATION); } - public JOauthRegistration(Table child, ForeignKey key) { - super(child, key, OAUTH_REGISTRATION); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JOauthRegistrationPath extends JOauthRegistration implements Path { + + private static final long serialVersionUID = 1L; + public JOauthRegistrationPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JOauthRegistrationPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JOauthRegistrationPath as(String alias) { + return new JOauthRegistrationPath(DSL.name(alias), this); + } + + @Override + public JOauthRegistrationPath as(Name alias) { + return new JOauthRegistrationPath(alias, this); + } + + @Override + public JOauthRegistrationPath as(Table alias) { + return new JOauthRegistrationPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.OAUTH_REGISTRATION_CLIENT_ID_KEY, Indexes.OAUTH_REGISTRATION_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -165,8 +191,34 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.OAUTH_REGISTRATION_PKEY, Keys.OAUTH_REGISTRATION_CLIENT_ID_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.OAUTH_REGISTRATION_CLIENT_ID_KEY); + } + + private transient JOauthRegistrationRestrictionPath _oauthRegistrationRestriction; + + /** + * Get the implicit to-many join path to the + * public.oauth_registration_restriction table + */ + public JOauthRegistrationRestrictionPath oauthRegistrationRestriction() { + if (_oauthRegistrationRestriction == null) + _oauthRegistrationRestriction = new JOauthRegistrationRestrictionPath(this, null, Keys.OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY.getInverseKey()); + + return _oauthRegistrationRestriction; + } + + private transient JOauthRegistrationScopePath _oauthRegistrationScope; + + /** + * Get the implicit to-many join path to the + * public.oauth_registration_scope table + */ + public JOauthRegistrationScopePath oauthRegistrationScope() { + if (_oauthRegistrationScope == null) + _oauthRegistrationScope = new JOauthRegistrationScopePath(this, null, Keys.OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY.getInverseKey()); + + return _oauthRegistrationScope; } @Override @@ -179,6 +231,11 @@ public JOauthRegistration as(Name alias) { return new JOauthRegistration(alias, this); } + @Override + public JOauthRegistration as(Table alias) { + return new JOauthRegistration(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -195,12 +252,95 @@ public JOauthRegistration rename(Name name) { return new JOauthRegistration(name, null); } - // ------------------------------------------------------------------------- - // Row12 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JOauthRegistration rename(Table name) { + return new JOauthRegistration(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistration where(Condition condition) { + return new JOauthRegistration(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistration where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistration where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistration where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistration where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistration where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistration where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistration where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistration whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); + public JOauthRegistration whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationRestriction.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationRestriction.java index 63d523eb2..65fb6549d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationRestriction.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationRestriction.java @@ -4,48 +4,49 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JOauthRegistration.JOauthRegistrationPath; import com.epam.ta.reportportal.jooq.tables.records.JOauthRegistrationRestrictionRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JOauthRegistrationRestriction extends TableImpl { - private static final long serialVersionUID = -973937527; + private static final long serialVersionUID = 1L; /** - * The reference instance of public.oauth_registration_restriction + * The reference instance of + * public.oauth_registration_restriction */ public static final JOauthRegistrationRestriction OAUTH_REGISTRATION_RESTRICTION = new JOauthRegistrationRestriction(); @@ -60,69 +61,97 @@ public Class getRecordType() { /** * The column public.oauth_registration_restriction.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('oauth_registration_restriction_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column public.oauth_registration_restriction.oauth_registration_fk. + * The column + * public.oauth_registration_restriction.oauth_registration_fk. */ - public final TableField OAUTH_REGISTRATION_FK = createField(DSL.name("oauth_registration_fk"), org.jooq.impl.SQLDataType.VARCHAR(128), this, ""); + public final TableField OAUTH_REGISTRATION_FK = createField(DSL.name("oauth_registration_fk"), SQLDataType.VARCHAR(128), this, ""); /** * The column public.oauth_registration_restriction.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.oauth_registration_restriction.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR(256).nullable(false), this, ""); - /** - * Create a public.oauth_registration_restriction table reference - */ - public JOauthRegistrationRestriction() { - this(DSL.name("oauth_registration_restriction"), null); + private JOauthRegistrationRestriction(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JOauthRegistrationRestriction(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** - * Create an aliased public.oauth_registration_restriction table reference + * Create an aliased public.oauth_registration_restriction + * table reference */ public JOauthRegistrationRestriction(String alias) { this(DSL.name(alias), OAUTH_REGISTRATION_RESTRICTION); } /** - * Create an aliased public.oauth_registration_restriction table reference + * Create an aliased public.oauth_registration_restriction + * table reference */ public JOauthRegistrationRestriction(Name alias) { this(alias, OAUTH_REGISTRATION_RESTRICTION); } - private JOauthRegistrationRestriction(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.oauth_registration_restriction table + * reference + */ + public JOauthRegistrationRestriction() { + this(DSL.name("oauth_registration_restriction"), null); } - private JOauthRegistrationRestriction(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JOauthRegistrationRestriction(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, OAUTH_REGISTRATION_RESTRICTION); } - public JOauthRegistrationRestriction(Table child, ForeignKey key) { - super(child, key, OAUTH_REGISTRATION_RESTRICTION); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JOauthRegistrationRestrictionPath extends JOauthRegistrationRestriction implements Path { + + private static final long serialVersionUID = 1L; + public JOauthRegistrationRestrictionPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JOauthRegistrationRestrictionPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JOauthRegistrationRestrictionPath as(String alias) { + return new JOauthRegistrationRestrictionPath(DSL.name(alias), this); + } + + @Override + public JOauthRegistrationRestrictionPath as(Name alias) { + return new JOauthRegistrationRestrictionPath(alias, this); + } + + @Override + public JOauthRegistrationRestrictionPath as(Table alias) { + return new JOauthRegistrationRestrictionPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.OAUTH_REGISTRATION_RESTRICTION_PK, Indexes.OAUTH_REGISTRATION_RESTRICTION_UNIQUE); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_OAUTH_REGISTRATION_RESTRICTION; + return (Identity) super.getIdentity(); } @Override @@ -131,17 +160,26 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.OAUTH_REGISTRATION_RESTRICTION_PK, Keys.OAUTH_REGISTRATION_RESTRICTION_UNIQUE); + public List> getUniqueKeys() { + return Arrays.asList(Keys.OAUTH_REGISTRATION_RESTRICTION_UNIQUE); } @Override public List> getReferences() { - return Arrays.>asList(Keys.OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY); + return Arrays.asList(Keys.OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY); } - public JOauthRegistration oauthRegistration() { - return new JOauthRegistration(this, Keys.OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY); + private transient JOauthRegistrationPath _oauthRegistration; + + /** + * Get the implicit join path to the public.oauth_registration + * table. + */ + public JOauthRegistrationPath oauthRegistration() { + if (_oauthRegistration == null) + _oauthRegistration = new JOauthRegistrationPath(this, Keys.OAUTH_REGISTRATION_RESTRICTION__OAUTH_REGISTRATION_RESTRICTION_OAUTH_REGISTRATION_FK_FKEY, null); + + return _oauthRegistration; } @Override @@ -154,6 +192,11 @@ public JOauthRegistrationRestriction as(Name alias) { return new JOauthRegistrationRestriction(alias, this); } + @Override + public JOauthRegistrationRestriction as(Table alias) { + return new JOauthRegistrationRestriction(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -170,12 +213,95 @@ public JOauthRegistrationRestriction rename(Name name) { return new JOauthRegistrationRestriction(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JOauthRegistrationRestriction rename(Table name) { + return new JOauthRegistrationRestriction(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationRestriction where(Condition condition) { + return new JOauthRegistrationRestriction(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationRestriction where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationRestriction where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationRestriction where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationRestriction where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationRestriction where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationRestriction where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationRestriction where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationRestriction whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JOauthRegistrationRestriction whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationScope.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationScope.java index f5ea776bd..872677442 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationScope.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOauthRegistrationScope.java @@ -4,45 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JOauthRegistration.JOauthRegistrationPath; import com.epam.ta.reportportal.jooq.tables.records.JOauthRegistrationScopeRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JOauthRegistrationScope extends TableImpl { - private static final long serialVersionUID = -729490491; + private static final long serialVersionUID = 1L; /** * The reference instance of public.oauth_registration_scope @@ -60,64 +60,91 @@ public Class getRecordType() { /** * The column public.oauth_registration_scope.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('oauth_registration_scope_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column public.oauth_registration_scope.oauth_registration_fk. + * The column + * public.oauth_registration_scope.oauth_registration_fk. */ - public final TableField OAUTH_REGISTRATION_FK = createField(DSL.name("oauth_registration_fk"), org.jooq.impl.SQLDataType.VARCHAR(128), this, ""); + public final TableField OAUTH_REGISTRATION_FK = createField(DSL.name("oauth_registration_fk"), SQLDataType.VARCHAR(128), this, ""); /** * The column public.oauth_registration_scope.scope. */ - public final TableField SCOPE = createField(DSL.name("scope"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField SCOPE = createField(DSL.name("scope"), SQLDataType.VARCHAR(256), this, ""); - /** - * Create a public.oauth_registration_scope table reference - */ - public JOauthRegistrationScope() { - this(DSL.name("oauth_registration_scope"), null); + private JOauthRegistrationScope(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JOauthRegistrationScope(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** - * Create an aliased public.oauth_registration_scope table reference + * Create an aliased public.oauth_registration_scope table + * reference */ public JOauthRegistrationScope(String alias) { this(DSL.name(alias), OAUTH_REGISTRATION_SCOPE); } /** - * Create an aliased public.oauth_registration_scope table reference + * Create an aliased public.oauth_registration_scope table + * reference */ public JOauthRegistrationScope(Name alias) { this(alias, OAUTH_REGISTRATION_SCOPE); } - private JOauthRegistrationScope(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.oauth_registration_scope table reference + */ + public JOauthRegistrationScope() { + this(DSL.name("oauth_registration_scope"), null); } - private JOauthRegistrationScope(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JOauthRegistrationScope(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, OAUTH_REGISTRATION_SCOPE); } - public JOauthRegistrationScope(Table child, ForeignKey key) { - super(child, key, OAUTH_REGISTRATION_SCOPE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JOauthRegistrationScopePath extends JOauthRegistrationScope implements Path { + + private static final long serialVersionUID = 1L; + public JOauthRegistrationScopePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JOauthRegistrationScopePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JOauthRegistrationScopePath as(String alias) { + return new JOauthRegistrationScopePath(DSL.name(alias), this); + } + + @Override + public JOauthRegistrationScopePath as(Name alias) { + return new JOauthRegistrationScopePath(alias, this); + } + + @Override + public JOauthRegistrationScopePath as(Table alias) { + return new JOauthRegistrationScopePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.OAUTH_REGISTRATION_SCOPE_PK, Indexes.OAUTH_REGISTRATION_SCOPE_UNIQUE); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_OAUTH_REGISTRATION_SCOPE; + return (Identity) super.getIdentity(); } @Override @@ -126,17 +153,26 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.OAUTH_REGISTRATION_SCOPE_PK, Keys.OAUTH_REGISTRATION_SCOPE_UNIQUE); + public List> getUniqueKeys() { + return Arrays.asList(Keys.OAUTH_REGISTRATION_SCOPE_UNIQUE); } @Override public List> getReferences() { - return Arrays.>asList(Keys.OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY); + return Arrays.asList(Keys.OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY); } - public JOauthRegistration oauthRegistration() { - return new JOauthRegistration(this, Keys.OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY); + private transient JOauthRegistrationPath _oauthRegistration; + + /** + * Get the implicit join path to the public.oauth_registration + * table. + */ + public JOauthRegistrationPath oauthRegistration() { + if (_oauthRegistration == null) + _oauthRegistration = new JOauthRegistrationPath(this, Keys.OAUTH_REGISTRATION_SCOPE__OAUTH_REGISTRATION_SCOPE_OAUTH_REGISTRATION_FK_FKEY, null); + + return _oauthRegistration; } @Override @@ -149,6 +185,11 @@ public JOauthRegistrationScope as(Name alias) { return new JOauthRegistrationScope(alias, this); } + @Override + public JOauthRegistrationScope as(Table alias) { + return new JOauthRegistrationScope(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -165,12 +206,95 @@ public JOauthRegistrationScope rename(Name name) { return new JOauthRegistrationScope(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JOauthRegistrationScope rename(Table name) { + return new JOauthRegistrationScope(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationScope where(Condition condition) { + return new JOauthRegistrationScope(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationScope where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationScope where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationScope where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationScope where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationScope where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationScope where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOauthRegistrationScope where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOauthRegistrationScope whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JOauthRegistrationScope whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOnboarding.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOnboarding.java index ba416953b..449ffe125 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOnboarding.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOnboarding.java @@ -5,46 +5,39 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.tables.records.JOnboardingRecord; import java.time.Instant; -import java.util.Arrays; -import java.util.List; - -import javax.annotation.processing.Generated; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JOnboarding extends TableImpl { - private static final long serialVersionUID = 1642783657; + private static final long serialVersionUID = 1L; /** * The reference instance of public.onboarding @@ -62,33 +55,34 @@ public Class getRecordType() { /** * The column public.onboarding.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('onboarding_id_seq'::regclass)", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.SMALLINT.nullable(false).identity(true), this, ""); /** * The column public.onboarding.data. */ - public final TableField DATA = createField(DSL.name("data"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField DATA = createField(DSL.name("data"), SQLDataType.CLOB, this, ""); /** * The column public.onboarding.page. */ - public final TableField PAGE = createField(DSL.name("page"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, ""); + public final TableField PAGE = createField(DSL.name("page"), SQLDataType.VARCHAR(50).nullable(false), this, ""); /** * The column public.onboarding.available_from. */ - public final TableField AVAILABLE_FROM = createField(DSL.name("available_from"), org.jooq.impl.SQLDataType.TIMESTAMP, this, "", new JooqInstantConverter()); + public final TableField AVAILABLE_FROM = createField(DSL.name("available_from"), SQLDataType.LOCALDATETIME(6), this, "", new JooqInstantConverter()); /** * The column public.onboarding.available_to. */ - public final TableField AVAILABLE_TO = createField(DSL.name("available_to"), org.jooq.impl.SQLDataType.TIMESTAMP, this, "", new JooqInstantConverter()); + public final TableField AVAILABLE_TO = createField(DSL.name("available_to"), SQLDataType.LOCALDATETIME(6), this, "", new JooqInstantConverter()); - /** - * Create a public.onboarding table reference - */ - public JOnboarding() { - this(DSL.name("onboarding"), null); + private JOnboarding(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JOnboarding(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -105,31 +99,21 @@ public JOnboarding(Name alias) { this(alias, ONBOARDING); } - private JOnboarding(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JOnboarding(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JOnboarding(Table child, ForeignKey key) { - super(child, key, ONBOARDING); + /** + * Create a public.onboarding table reference + */ + public JOnboarding() { + this(DSL.name("onboarding"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.ONBOARDING_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_ONBOARDING; + return (Identity) super.getIdentity(); } @Override @@ -137,11 +121,6 @@ public UniqueKey getPrimaryKey() { return Keys.ONBOARDING_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.ONBOARDING_PK); - } - @Override public JOnboarding as(String alias) { return new JOnboarding(DSL.name(alias), this); @@ -152,6 +131,11 @@ public JOnboarding as(Name alias) { return new JOnboarding(alias, this); } + @Override + public JOnboarding as(Table alias) { + return new JOnboarding(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -168,12 +152,95 @@ public JOnboarding rename(Name name) { return new JOnboarding(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JOnboarding rename(Table name) { + return new JOnboarding(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOnboarding where(Condition condition) { + return new JOnboarding(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOnboarding where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOnboarding where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOnboarding where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOnboarding where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOnboarding where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOnboarding where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOnboarding where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOnboarding whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public JOnboarding whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOwnedEntity.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOwnedEntity.java index 46ddbcbbd..5cda009e3 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JOwnedEntity.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JOwnedEntity.java @@ -7,42 +7,47 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JDashboard.JDashboardPath; +import com.epam.ta.reportportal.jooq.tables.JFilter.JFilterPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JWidget.JWidgetPath; import com.epam.ta.reportportal.jooq.tables.records.JOwnedEntityRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JOwnedEntity extends TableImpl { - private static final long serialVersionUID = 1859921375; + private static final long serialVersionUID = 1L; /** * The reference instance of public.owned_entity @@ -60,23 +65,24 @@ public Class getRecordType() { /** * The column public.owned_entity.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('shareable_entity_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.owned_entity.owner. */ - public final TableField OWNER = createField(DSL.name("owner"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField OWNER = createField(DSL.name("owner"), SQLDataType.VARCHAR, this, ""); /** * The column public.owned_entity.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.owned_entity table reference - */ - public JOwnedEntity() { - this(DSL.name("owned_entity"), null); + private JOwnedEntity(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JOwnedEntity(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -93,31 +99,59 @@ public JOwnedEntity(Name alias) { this(alias, OWNED_ENTITY); } - private JOwnedEntity(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.owned_entity table reference + */ + public JOwnedEntity() { + this(DSL.name("owned_entity"), null); } - private JOwnedEntity(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JOwnedEntity(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, OWNED_ENTITY); } - public JOwnedEntity(Table child, ForeignKey key) { - super(child, key, OWNED_ENTITY); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JOwnedEntityPath extends JOwnedEntity implements Path { + + private static final long serialVersionUID = 1L; + public JOwnedEntityPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JOwnedEntityPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JOwnedEntityPath as(String alias) { + return new JOwnedEntityPath(DSL.name(alias), this); + } + + @Override + public JOwnedEntityPath as(Name alias) { + return new JOwnedEntityPath(alias, this); + } + + @Override + public JOwnedEntityPath as(Table alias) { + return new JOwnedEntityPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.SHAREABLE_PK, Indexes.SHARED_ENTITY_OWNERX, Indexes.SHARED_ENTITY_PROJECT_IDX); + return Arrays.asList(Indexes.SHARED_ENTITY_OWNERX, Indexes.SHARED_ENTITY_PROJECT_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_OWNED_ENTITY; + return (Identity) super.getIdentity(); } @Override @@ -126,17 +160,59 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.SHAREABLE_PK); + public List> getReferences() { + return Arrays.asList(Keys.OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY, null); + + return _project; } - public JProject project() { - return new JProject(this, Keys.OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY); + private transient JDashboardPath _dashboard; + + /** + * Get the implicit to-many join path to the public.dashboard + * table + */ + public JDashboardPath dashboard() { + if (_dashboard == null) + _dashboard = new JDashboardPath(this, null, Keys.DASHBOARD__DASHBOARD_ID_FK.getInverseKey()); + + return _dashboard; + } + + private transient JFilterPath _filter; + + /** + * Get the implicit to-many join path to the public.filter + * table + */ + public JFilterPath filter() { + if (_filter == null) + _filter = new JFilterPath(this, null, Keys.FILTER__FILTER_ID_FK.getInverseKey()); + + return _filter; + } + + private transient JWidgetPath _widget; + + /** + * Get the implicit to-many join path to the public.widget + * table + */ + public JWidgetPath widget() { + if (_widget == null) + _widget = new JWidgetPath(this, null, Keys.WIDGET__WIDGET_ID_FK.getInverseKey()); + + return _widget; } @Override @@ -149,6 +225,11 @@ public JOwnedEntity as(Name alias) { return new JOwnedEntity(alias, this); } + @Override + public JOwnedEntity as(Table alias) { + return new JOwnedEntity(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -165,12 +246,95 @@ public JOwnedEntity rename(Name name) { return new JOwnedEntity(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JOwnedEntity rename(Table name) { + return new JOwnedEntity(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JOwnedEntity where(Condition condition) { + return new JOwnedEntity(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOwnedEntity where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOwnedEntity where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOwnedEntity where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOwnedEntity where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOwnedEntity where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOwnedEntity where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JOwnedEntity where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JOwnedEntity whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JOwnedEntity whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JParameter.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JParameter.java index 83a277958..7185f4cc3 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JParameter.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JParameter.java @@ -7,40 +7,42 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JParameterRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JParameter extends TableImpl { - private static final long serialVersionUID = 870603839; + private static final long serialVersionUID = 1L; /** * The reference instance of public.parameter @@ -58,23 +60,24 @@ public Class getRecordType() { /** * The column public.parameter.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT, this, ""); /** * The column public.parameter.key. */ - public final TableField KEY = createField(DSL.name("key"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.parameter.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR.nullable(false), this, ""); - /** - * Create a public.parameter table reference - */ - public JParameter() { - this(DSL.name("parameter"), null); + private JParameter(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JParameter(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -91,35 +94,71 @@ public JParameter(Name alias) { this(alias, PARAMETER); } - private JParameter(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.parameter table reference + */ + public JParameter() { + this(DSL.name("parameter"), null); } - private JParameter(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JParameter(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, PARAMETER); } - public JParameter(Table child, ForeignKey key) { - super(child, key, PARAMETER); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JParameterPath extends JParameter implements Path { + + private static final long serialVersionUID = 1L; + public JParameterPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JParameterPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JParameterPath as(String alias) { + return new JParameterPath(DSL.name(alias), this); + } + + @Override + public JParameterPath as(Name alias) { + return new JParameterPath(alias, this); + } + + @Override + public JParameterPath as(Table alias) { + return new JParameterPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.PARAMETER_TI_IDX); + return Arrays.asList(Indexes.PARAMETER_TI_IDX); } @Override public List> getReferences() { - return Arrays.>asList(Keys.PARAMETER__PARAMETER_ITEM_ID_FKEY); + return Arrays.asList(Keys.PARAMETER__PARAMETER_ITEM_ID_FKEY); } - public JTestItem testItem() { - return new JTestItem(this, Keys.PARAMETER__PARAMETER_ITEM_ID_FKEY); + private transient JTestItemPath _testItem; + + /** + * Get the implicit join path to the public.test_item table. + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, Keys.PARAMETER__PARAMETER_ITEM_ID_FKEY, null); + + return _testItem; } @Override @@ -132,6 +171,11 @@ public JParameter as(Name alias) { return new JParameter(alias, this); } + @Override + public JParameter as(Table alias) { + return new JParameter(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -148,12 +192,95 @@ public JParameter rename(Name name) { return new JParameter(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JParameter rename(Table name) { + return new JParameter(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JParameter where(Condition condition) { + return new JParameter(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JParameter where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JParameter where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JParameter where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JParameter where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JParameter where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JParameter where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JParameter where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JParameter whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JParameter whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplate.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplate.java index 899ff846a..a50ec728a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplate.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplate.java @@ -4,45 +4,47 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JPatternTemplateTestItem.JPatternTemplateTestItemPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JPatternTemplateRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JPatternTemplate extends TableImpl { - private static final long serialVersionUID = 505397920; + private static final long serialVersionUID = 1L; /** * The reference instance of public.pattern_template @@ -60,38 +62,39 @@ public Class getRecordType() { /** * The column public.pattern_template.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('pattern_template_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.pattern_template.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.pattern_template.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.pattern_template.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.pattern_template.enabled. */ - public final TableField ENABLED = createField(DSL.name("enabled"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, ""); + public final TableField ENABLED = createField(DSL.name("enabled"), SQLDataType.BOOLEAN.nullable(false), this, ""); /** * The column public.pattern_template.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.pattern_template table reference - */ - public JPatternTemplate() { - this(DSL.name("pattern_template"), null); + private JPatternTemplate(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JPatternTemplate(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -108,31 +111,54 @@ public JPatternTemplate(Name alias) { this(alias, PATTERN_TEMPLATE); } - private JPatternTemplate(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.pattern_template table reference + */ + public JPatternTemplate() { + this(DSL.name("pattern_template"), null); } - private JPatternTemplate(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JPatternTemplate(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, PATTERN_TEMPLATE); } - public JPatternTemplate(Table child, ForeignKey key) { - super(child, key, PATTERN_TEMPLATE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JPatternTemplatePath extends JPatternTemplate implements Path { + + private static final long serialVersionUID = 1L; + public JPatternTemplatePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JPatternTemplatePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JPatternTemplatePath as(String alias) { + return new JPatternTemplatePath(DSL.name(alias), this); + } + + @Override + public JPatternTemplatePath as(Name alias) { + return new JPatternTemplatePath(alias, this); + } + + @Override + public JPatternTemplatePath as(Table alias) { + return new JPatternTemplatePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.PATTERN_TEMPLATE_PK, Indexes.UNQ_NAME_PROJECTID); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_PATTERN_TEMPLATE; + return (Identity) super.getIdentity(); } @Override @@ -141,17 +167,46 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.PATTERN_TEMPLATE_PK, Keys.UNQ_NAME_PROJECTID); + public List> getUniqueKeys() { + return Arrays.asList(Keys.UNQ_NAME_PROJECTID); } @Override public List> getReferences() { - return Arrays.>asList(Keys.PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY); + return Arrays.asList(Keys.PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY); } - public JProject project() { - return new JProject(this, Keys.PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY, null); + + return _project; + } + + private transient JPatternTemplateTestItemPath _patternTemplateTestItem; + + /** + * Get the implicit to-many join path to the + * public.pattern_template_test_item table + */ + public JPatternTemplateTestItemPath patternTemplateTestItem() { + if (_patternTemplateTestItem == null) + _patternTemplateTestItem = new JPatternTemplateTestItemPath(this, null, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY.getInverseKey()); + + return _patternTemplateTestItem; + } + + /** + * Get the implicit many-to-many join path to the + * public.test_item table + */ + public JTestItemPath testItem() { + return patternTemplateTestItem().testItem(); } @Override @@ -164,6 +219,11 @@ public JPatternTemplate as(Name alias) { return new JPatternTemplate(alias, this); } + @Override + public JPatternTemplate as(Table alias) { + return new JPatternTemplate(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -180,12 +240,95 @@ public JPatternTemplate rename(Name name) { return new JPatternTemplate(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JPatternTemplate rename(Table name) { + return new JPatternTemplate(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplate where(Condition condition) { + return new JPatternTemplate(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplate where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplate where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplate where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplate where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplate where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplate where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplate where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplate whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public JPatternTemplate whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplateTestItem.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplateTestItem.java index 588acea06..219bf5b56 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplateTestItem.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JPatternTemplateTestItem.java @@ -7,41 +7,44 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JPatternTemplate.JPatternTemplatePath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JPatternTemplateTestItemRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JPatternTemplateTestItem extends TableImpl { - private static final long serialVersionUID = 1502918772; + private static final long serialVersionUID = 1L; /** * The reference instance of public.pattern_template_test_item @@ -59,54 +62,85 @@ public Class getRecordType() { /** * The column public.pattern_template_test_item.pattern_id. */ - public final TableField PATTERN_ID = createField(DSL.name("pattern_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PATTERN_ID = createField(DSL.name("pattern_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.pattern_template_test_item.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.pattern_template_test_item table reference - */ - public JPatternTemplateTestItem() { - this(DSL.name("pattern_template_test_item"), null); + private JPatternTemplateTestItem(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JPatternTemplateTestItem(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** - * Create an aliased public.pattern_template_test_item table reference + * Create an aliased public.pattern_template_test_item table + * reference */ public JPatternTemplateTestItem(String alias) { this(DSL.name(alias), PATTERN_TEMPLATE_TEST_ITEM); } /** - * Create an aliased public.pattern_template_test_item table reference + * Create an aliased public.pattern_template_test_item table + * reference */ public JPatternTemplateTestItem(Name alias) { this(alias, PATTERN_TEMPLATE_TEST_ITEM); } - private JPatternTemplateTestItem(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.pattern_template_test_item table reference + */ + public JPatternTemplateTestItem() { + this(DSL.name("pattern_template_test_item"), null); } - private JPatternTemplateTestItem(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JPatternTemplateTestItem(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, PATTERN_TEMPLATE_TEST_ITEM); } - public JPatternTemplateTestItem(Table child, ForeignKey key) { - super(child, key, PATTERN_TEMPLATE_TEST_ITEM); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JPatternTemplateTestItemPath extends JPatternTemplateTestItem implements Path { + + private static final long serialVersionUID = 1L; + public JPatternTemplateTestItemPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JPatternTemplateTestItemPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JPatternTemplateTestItemPath as(String alias) { + return new JPatternTemplateTestItemPath(DSL.name(alias), this); + } + + @Override + public JPatternTemplateTestItemPath as(Name alias) { + return new JPatternTemplateTestItemPath(alias, this); + } + + @Override + public JPatternTemplateTestItemPath as(Table alias) { + return new JPatternTemplateTestItemPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.PATTERN_ITEM_ITEM_ID_IDX, Indexes.PATTERN_ITEM_UNQ); + return Arrays.asList(Indexes.PATTERN_ITEM_ITEM_ID_IDX); } @Override @@ -114,22 +148,34 @@ public UniqueKey getPrimaryKey() { return Keys.PATTERN_ITEM_UNQ; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.PATTERN_ITEM_UNQ); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY); + return Arrays.asList(Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY); } - public JPatternTemplate patternTemplate() { - return new JPatternTemplate(this, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY); + private transient JTestItemPath _testItem; + + /** + * Get the implicit join path to the public.test_item table. + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY, null); + + return _testItem; } - public JTestItem testItem() { - return new JTestItem(this, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY); + private transient JPatternTemplatePath _patternTemplate; + + /** + * Get the implicit join path to the public.pattern_template + * table. + */ + public JPatternTemplatePath patternTemplate() { + if (_patternTemplate == null) + _patternTemplate = new JPatternTemplatePath(this, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_PATTERN_ID_FKEY, null); + + return _patternTemplate; } @Override @@ -142,6 +188,11 @@ public JPatternTemplateTestItem as(Name alias) { return new JPatternTemplateTestItem(alias, this); } + @Override + public JPatternTemplateTestItem as(Table alias) { + return new JPatternTemplateTestItem(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -158,12 +209,95 @@ public JPatternTemplateTestItem rename(Name name) { return new JPatternTemplateTestItem(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JPatternTemplateTestItem rename(Table name) { + return new JPatternTemplateTestItem(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplateTestItem where(Condition condition) { + return new JPatternTemplateTestItem(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplateTestItem where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplateTestItem where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplateTestItem where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplateTestItem where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplateTestItem where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplateTestItem where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JPatternTemplateTestItem where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JPatternTemplateTestItem whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JPatternTemplateTestItem whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JPgpArmorHeaders.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JPgpArmorHeaders.java index c8a9b346f..a4f056a5c 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JPgpArmorHeaders.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JPgpArmorHeaders.java @@ -7,34 +7,25 @@ import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.tables.records.JPgpArmorHeadersRecord; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JPgpArmorHeaders extends TableImpl { - private static final long serialVersionUID = -689424105; + private static final long serialVersionUID = 1L; /** * The reference instance of public.pgp_armor_headers @@ -52,18 +43,25 @@ public Class getRecordType() { /** * The column public.pgp_armor_headers.key. */ - public final TableField KEY = createField(DSL.name("key"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField KEY = createField(DSL.name("key"), SQLDataType.CLOB, this, ""); /** * The column public.pgp_armor_headers.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.CLOB, this, ""); - /** - * Create a public.pgp_armor_headers table reference - */ - public JPgpArmorHeaders() { - this(DSL.name("pgp_armor_headers"), null); + private JPgpArmorHeaders(Name alias, Table aliased) { + this(alias, aliased, new Field[] { + DSL.val(null, SQLDataType.CLOB) + }); + } + + private JPgpArmorHeaders(Name alias, Table aliased, Field[] parameters) { + this(alias, aliased, parameters, null); + } + + private JPgpArmorHeaders(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.function(), where); } /** @@ -80,21 +78,16 @@ public JPgpArmorHeaders(Name alias) { this(alias, PGP_ARMOR_HEADERS); } - private JPgpArmorHeaders(Name alias, Table aliased) { - this(alias, aliased, new Field[1]); - } - - private JPgpArmorHeaders(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JPgpArmorHeaders(Table child, ForeignKey key) { - super(child, key, PGP_ARMOR_HEADERS); + /** + * Create a public.pgp_armor_headers table reference + */ + public JPgpArmorHeaders() { + this(DSL.name("pgp_armor_headers"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -107,6 +100,11 @@ public JPgpArmorHeaders as(Name alias) { return new JPgpArmorHeaders(alias, this, parameters); } + @Override + public JPgpArmorHeaders as(Table alias) { + return new JPgpArmorHeaders(alias.getQualifiedName(), this, parameters); + } + /** * Rename this table */ @@ -123,30 +121,37 @@ public JPgpArmorHeaders rename(Name name) { return new JPgpArmorHeaders(name, null, parameters); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JPgpArmorHeaders rename(Table name) { + return new JPgpArmorHeaders(name.getQualifiedName(), null, parameters); } /** * Call this table-valued function */ - public JPgpArmorHeaders call(String __1) { - return new JPgpArmorHeaders(DSL.name(getName()), null, new Field[] { - DSL.val(__1, org.jooq.impl.SQLDataType.CLOB) + public JPgpArmorHeaders call( + String __1 + ) { + JPgpArmorHeaders result = new JPgpArmorHeaders(DSL.name("pgp_armor_headers"), null, new Field[] { + DSL.val(__1, SQLDataType.CLOB) }); + + return aliased() ? result.as(getUnqualifiedName()) : result; } /** * Call this table-valued function */ - public JPgpArmorHeaders call(Field __1) { - return new JPgpArmorHeaders(DSL.name(getName()), null, new Field[] { - __1 + public JPgpArmorHeaders call( + Field __1 + ) { + JPgpArmorHeaders result = new JPgpArmorHeaders(DSL.name("pgp_armor_headers"), null, new Field[] { + __1 }); + + return aliased() ? result.as(getUnqualifiedName()) : result; } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JProject.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JProject.java index a45f92e2a..aa676dfcd 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JProject.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JProject.java @@ -5,47 +5,60 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JActivity.JActivityPath; +import com.epam.ta.reportportal.jooq.tables.JAttribute.JAttributePath; +import com.epam.ta.reportportal.jooq.tables.JIntegration.JIntegrationPath; +import com.epam.ta.reportportal.jooq.tables.JIssueType.JIssueTypePath; +import com.epam.ta.reportportal.jooq.tables.JIssueTypeProject.JIssueTypeProjectPath; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JLaunchNumber.JLaunchNumberPath; +import com.epam.ta.reportportal.jooq.tables.JOwnedEntity.JOwnedEntityPath; +import com.epam.ta.reportportal.jooq.tables.JPatternTemplate.JPatternTemplatePath; +import com.epam.ta.reportportal.jooq.tables.JProjectAttribute.JProjectAttributePath; +import com.epam.ta.reportportal.jooq.tables.JProjectUser.JProjectUserPath; +import com.epam.ta.reportportal.jooq.tables.JSenderCase.JSenderCasePath; +import com.epam.ta.reportportal.jooq.tables.JUserPreference.JUserPreferencePath; +import com.epam.ta.reportportal.jooq.tables.JUsers.JUsersPath; import com.epam.ta.reportportal.jooq.tables.records.JProjectRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row7; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JProject extends TableImpl { - private static final long serialVersionUID = 1861656734; + private static final long serialVersionUID = 1L; /** * The reference instance of public.project @@ -63,43 +76,44 @@ public Class getRecordType() { /** * The column public.project.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('project_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.project.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.project.project_type. */ - public final TableField PROJECT_TYPE = createField(DSL.name("project_type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField PROJECT_TYPE = createField(DSL.name("project_type"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.project.organization. */ - public final TableField ORGANIZATION = createField(DSL.name("organization"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField ORGANIZATION = createField(DSL.name("organization"), SQLDataType.VARCHAR, this, ""); /** * The column public.project.creation_date. */ - public final TableField CREATION_DATE = createField(DSL.name("creation_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.project.metadata. */ - public final TableField METADATA = createField(DSL.name("metadata"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField METADATA = createField(DSL.name("metadata"), SQLDataType.JSONB, this, ""); /** * The column public.project.allocated_storage. */ - public final TableField ALLOCATED_STORAGE = createField(DSL.name("allocated_storage"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ALLOCATED_STORAGE = createField(DSL.name("allocated_storage"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); - /** - * Create a public.project table reference - */ - public JProject() { - this(DSL.name("project"), null); + private JProject(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JProject(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -116,31 +130,54 @@ public JProject(Name alias) { this(alias, PROJECT); } - private JProject(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.project table reference + */ + public JProject() { + this(DSL.name("project"), null); } - private JProject(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JProject(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, PROJECT); } - public JProject(Table child, ForeignKey key) { - super(child, key, PROJECT); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JProjectPath extends JProject implements Path { + + private static final long serialVersionUID = 1L; + public JProjectPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JProjectPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JProjectPath as(String alias) { + return new JProjectPath(DSL.name(alias), this); + } + + @Override + public JProjectPath as(Name alias) { + return new JProjectPath(alias, this); + } + + @Override + public JProjectPath as(Table alias) { + return new JProjectPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.PROJECT_NAME_KEY, Indexes.PROJECT_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_PROJECT; + return (Identity) super.getIdentity(); } @Override @@ -149,8 +186,175 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.PROJECT_PK, Keys.PROJECT_NAME_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.PROJECT_NAME_KEY); + } + + private transient JActivityPath _activity; + + /** + * Get the implicit to-many join path to the public.activity + * table + */ + public JActivityPath activity() { + if (_activity == null) + _activity = new JActivityPath(this, null, Keys.ACTIVITY__ACTIVITY_PROJECT_ID_FKEY.getInverseKey()); + + return _activity; + } + + private transient JIntegrationPath _integration; + + /** + * Get the implicit to-many join path to the public.integration + * table + */ + public JIntegrationPath integration() { + if (_integration == null) + _integration = new JIntegrationPath(this, null, Keys.INTEGRATION__INTEGRATION_PROJECT_ID_FKEY.getInverseKey()); + + return _integration; + } + + private transient JIssueTypeProjectPath _issueTypeProject; + + /** + * Get the implicit to-many join path to the + * public.issue_type_project table + */ + public JIssueTypeProjectPath issueTypeProject() { + if (_issueTypeProject == null) + _issueTypeProject = new JIssueTypeProjectPath(this, null, Keys.ISSUE_TYPE_PROJECT__ISSUE_TYPE_PROJECT_PROJECT_ID_FKEY.getInverseKey()); + + return _issueTypeProject; + } + + private transient JLaunchNumberPath _launchNumber; + + /** + * Get the implicit to-many join path to the + * public.launch_number table + */ + public JLaunchNumberPath launchNumber() { + if (_launchNumber == null) + _launchNumber = new JLaunchNumberPath(this, null, Keys.LAUNCH_NUMBER__LAUNCH_NUMBER_PROJECT_ID_FKEY.getInverseKey()); + + return _launchNumber; + } + + private transient JLaunchPath _launch; + + /** + * Get the implicit to-many join path to the public.launch + * table + */ + public JLaunchPath launch() { + if (_launch == null) + _launch = new JLaunchPath(this, null, Keys.LAUNCH__LAUNCH_PROJECT_ID_FKEY.getInverseKey()); + + return _launch; + } + + private transient JPatternTemplatePath _patternTemplate; + + /** + * Get the implicit to-many join path to the + * public.pattern_template table + */ + public JPatternTemplatePath patternTemplate() { + if (_patternTemplate == null) + _patternTemplate = new JPatternTemplatePath(this, null, Keys.PATTERN_TEMPLATE__PATTERN_TEMPLATE_PROJECT_ID_FKEY.getInverseKey()); + + return _patternTemplate; + } + + private transient JProjectAttributePath _projectAttribute; + + /** + * Get the implicit to-many join path to the + * public.project_attribute table + */ + public JProjectAttributePath projectAttribute() { + if (_projectAttribute == null) + _projectAttribute = new JProjectAttributePath(this, null, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY.getInverseKey()); + + return _projectAttribute; + } + + private transient JProjectUserPath _projectUser; + + /** + * Get the implicit to-many join path to the + * public.project_user table + */ + public JProjectUserPath projectUser() { + if (_projectUser == null) + _projectUser = new JProjectUserPath(this, null, Keys.PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY.getInverseKey()); + + return _projectUser; + } + + private transient JSenderCasePath _senderCase; + + /** + * Get the implicit to-many join path to the public.sender_case + * table + */ + public JSenderCasePath senderCase() { + if (_senderCase == null) + _senderCase = new JSenderCasePath(this, null, Keys.SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY.getInverseKey()); + + return _senderCase; + } + + private transient JOwnedEntityPath _ownedEntity; + + /** + * Get the implicit to-many join path to the + * public.owned_entity table + */ + public JOwnedEntityPath ownedEntity() { + if (_ownedEntity == null) + _ownedEntity = new JOwnedEntityPath(this, null, Keys.OWNED_ENTITY__SHAREABLE_ENTITY_PROJECT_ID_FKEY.getInverseKey()); + + return _ownedEntity; + } + + private transient JUserPreferencePath _userPreference; + + /** + * Get the implicit to-many join path to the + * public.user_preference table + */ + public JUserPreferencePath userPreference() { + if (_userPreference == null) + _userPreference = new JUserPreferencePath(this, null, Keys.USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY.getInverseKey()); + + return _userPreference; + } + + /** + * Get the implicit many-to-many join path to the + * public.issue_type table + */ + public JIssueTypePath issueType() { + return issueTypeProject().issueType(); + } + + /** + * Get the implicit many-to-many join path to the + * public.attribute table + */ + public JAttributePath attribute() { + return projectAttribute().attribute(); + } + + /** + * Get the implicit many-to-many join path to the public.users + * table + */ + public JUsersPath users() { + return projectUser().users(); } @Override @@ -163,6 +367,11 @@ public JProject as(Name alias) { return new JProject(alias, this); } + @Override + public JProject as(Table alias) { + return new JProject(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -179,12 +388,95 @@ public JProject rename(Name name) { return new JProject(name, null); } - // ------------------------------------------------------------------------- - // Row7 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JProject rename(Table name) { + return new JProject(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProject where(Condition condition) { + return new JProject(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProject where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProject where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProject where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProject where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProject where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProject where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProject where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProject whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public JProject whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectAttribute.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectAttribute.java index db1892c07..41274ada6 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectAttribute.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectAttribute.java @@ -4,45 +4,46 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JAttribute.JAttributePath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; import com.epam.ta.reportportal.jooq.tables.records.JProjectAttributeRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JProjectAttribute extends TableImpl { - private static final long serialVersionUID = -860086297; + private static final long serialVersionUID = 1L; /** * The reference instance of public.project_attribute @@ -60,23 +61,24 @@ public Class getRecordType() { /** * The column public.project_attribute.attribute_id. */ - public final TableField ATTRIBUTE_ID = createField(DSL.name("attribute_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('project_attribute_attribute_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ATTRIBUTE_ID = createField(DSL.name("attribute_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.project_attribute.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.project_attribute.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('project_attribute_project_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - /** - * Create a public.project_attribute table reference - */ - public JProjectAttribute() { - this(DSL.name("project_attribute"), null); + private JProjectAttribute(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JProjectAttribute(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -93,31 +95,54 @@ public JProjectAttribute(Name alias) { this(alias, PROJECT_ATTRIBUTE); } - private JProjectAttribute(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.project_attribute table reference + */ + public JProjectAttribute() { + this(DSL.name("project_attribute"), null); } - private JProjectAttribute(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JProjectAttribute(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, PROJECT_ATTRIBUTE); } - public JProjectAttribute(Table child, ForeignKey key) { - super(child, key, PROJECT_ATTRIBUTE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JProjectAttributePath extends JProjectAttribute implements Path { + + private static final long serialVersionUID = 1L; + public JProjectAttributePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JProjectAttributePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JProjectAttributePath as(String alias) { + return new JProjectAttributePath(DSL.name(alias), this); + } + + @Override + public JProjectAttributePath as(Name alias) { + return new JProjectAttributePath(alias, this); + } + + @Override + public JProjectAttributePath as(Table alias) { + return new JProjectAttributePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.UNIQUE_ATTRIBUTE_PER_PROJECT); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_PROJECT_ATTRIBUTE; + return (Identity) super.getIdentity(); } @Override @@ -125,22 +150,33 @@ public UniqueKey getPrimaryKey() { return Keys.UNIQUE_ATTRIBUTE_PER_PROJECT; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.UNIQUE_ATTRIBUTE_PER_PROJECT); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY); + return Arrays.asList(Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY); } - public JAttribute attribute() { - return new JAttribute(this, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY); + private transient JAttributePath _attribute; + + /** + * Get the implicit join path to the public.attribute table. + */ + public JAttributePath attribute() { + if (_attribute == null) + _attribute = new JAttributePath(this, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_ATTRIBUTE_ID_FKEY, null); + + return _attribute; } - public JProject project() { - return new JProject(this, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.PROJECT_ATTRIBUTE__PROJECT_ATTRIBUTE_PROJECT_ID_FKEY, null); + + return _project; } @Override @@ -153,6 +189,11 @@ public JProjectAttribute as(Name alias) { return new JProjectAttribute(alias, this); } + @Override + public JProjectAttribute as(Table alias) { + return new JProjectAttribute(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -169,12 +210,95 @@ public JProjectAttribute rename(Name name) { return new JProjectAttribute(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JProjectAttribute rename(Table name) { + return new JProjectAttribute(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectAttribute where(Condition condition) { + return new JProjectAttribute(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectAttribute where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectAttribute where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectAttribute where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectAttribute where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectAttribute where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectAttribute where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectAttribute where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectAttribute whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JProjectAttribute whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectUser.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectUser.java index c6142c102..df1313ef9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectUser.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JProjectUser.java @@ -4,45 +4,46 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JProjectRoleEnum; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JUsers.JUsersPath; import com.epam.ta.reportportal.jooq.tables.records.JProjectUserRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JProjectUser extends TableImpl { - private static final long serialVersionUID = -877127631; + private static final long serialVersionUID = 1L; /** * The reference instance of public.project_user @@ -60,23 +61,24 @@ public Class getRecordType() { /** * The column public.project_user.user_id. */ - public final TableField USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.project_user.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.project_user.project_role. */ - public final TableField PROJECT_ROLE = createField(DSL.name("project_role"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JProjectRoleEnum.class), this, ""); + public final TableField PROJECT_ROLE = createField(DSL.name("project_role"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JProjectRoleEnum.class), this, ""); - /** - * Create a public.project_user table reference - */ - public JProjectUser() { - this(DSL.name("project_user"), null); + private JProjectUser(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JProjectUser(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -93,26 +95,49 @@ public JProjectUser(Name alias) { this(alias, PROJECT_USER); } - private JProjectUser(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.project_user table reference + */ + public JProjectUser() { + this(DSL.name("project_user"), null); } - private JProjectUser(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JProjectUser(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, PROJECT_USER); } - public JProjectUser(Table child, ForeignKey key) { - super(child, key, PROJECT_USER); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JProjectUserPath extends JProjectUser implements Path { + + private static final long serialVersionUID = 1L; + public JProjectUserPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JProjectUserPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JProjectUserPath as(String alias) { + return new JProjectUserPath(DSL.name(alias), this); + } + + @Override + public JProjectUserPath as(Name alias) { + return new JProjectUserPath(alias, this); + } + + @Override + public JProjectUserPath as(Table alias) { + return new JProjectUserPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.USERS_PROJECT_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -120,22 +145,33 @@ public UniqueKey getPrimaryKey() { return Keys.USERS_PROJECT_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.USERS_PROJECT_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.PROJECT_USER__PROJECT_USER_USER_ID_FKEY, Keys.PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY); + return Arrays.asList(Keys.PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY, Keys.PROJECT_USER__PROJECT_USER_USER_ID_FKEY); } - public JUsers users() { - return new JUsers(this, Keys.PROJECT_USER__PROJECT_USER_USER_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY, null); + + return _project; } - public JProject project() { - return new JProject(this, Keys.PROJECT_USER__PROJECT_USER_PROJECT_ID_FKEY); + private transient JUsersPath _users; + + /** + * Get the implicit join path to the public.users table. + */ + public JUsersPath users() { + if (_users == null) + _users = new JUsersPath(this, Keys.PROJECT_USER__PROJECT_USER_USER_ID_FKEY, null); + + return _users; } @Override @@ -148,6 +184,11 @@ public JProjectUser as(Name alias) { return new JProjectUser(alias, this); } + @Override + public JProjectUser as(Table alias) { + return new JProjectUser(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -164,12 +205,95 @@ public JProjectUser rename(Name name) { return new JProjectUser(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JProjectUser rename(Table name) { + return new JProjectUser(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectUser where(Condition condition) { + return new JProjectUser(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectUser where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectUser where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectUser where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectUser where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectUser where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectUser where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JProjectUser where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JProjectUser whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JProjectUser whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JRecipients.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JRecipients.java index 6ae881db0..969fb5943 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JRecipients.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JRecipients.java @@ -7,40 +7,42 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JSenderCase.JSenderCasePath; import com.epam.ta.reportportal.jooq.tables.records.JRecipientsRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JRecipients extends TableImpl { - private static final long serialVersionUID = -1755691325; + private static final long serialVersionUID = 1L; /** * The reference instance of public.recipients @@ -58,18 +60,19 @@ public Class getRecordType() { /** * The column public.recipients.sender_case_id. */ - public final TableField SENDER_CASE_ID = createField(DSL.name("sender_case_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField SENDER_CASE_ID = createField(DSL.name("sender_case_id"), SQLDataType.BIGINT, this, ""); /** * The column public.recipients.recipient. */ - public final TableField RECIPIENT = createField(DSL.name("recipient"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField RECIPIENT = createField(DSL.name("recipient"), SQLDataType.VARCHAR(256), this, ""); - /** - * Create a public.recipients table reference - */ - public JRecipients() { - this(DSL.name("recipients"), null); + private JRecipients(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JRecipients(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -86,35 +89,71 @@ public JRecipients(Name alias) { this(alias, RECIPIENTS); } - private JRecipients(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.recipients table reference + */ + public JRecipients() { + this(DSL.name("recipients"), null); } - private JRecipients(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JRecipients(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, RECIPIENTS); } - public JRecipients(Table child, ForeignKey key) { - super(child, key, RECIPIENTS); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JRecipientsPath extends JRecipients implements Path { + + private static final long serialVersionUID = 1L; + public JRecipientsPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JRecipientsPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JRecipientsPath as(String alias) { + return new JRecipientsPath(DSL.name(alias), this); + } + + @Override + public JRecipientsPath as(Name alias) { + return new JRecipientsPath(alias, this); + } + + @Override + public JRecipientsPath as(Table alias) { + return new JRecipientsPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.RCPNT_SEND_CASE_IDX); + return Arrays.asList(Indexes.RCPNT_SEND_CASE_IDX); } @Override public List> getReferences() { - return Arrays.>asList(Keys.RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY); + return Arrays.asList(Keys.RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY); } - public JSenderCase senderCase() { - return new JSenderCase(this, Keys.RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY); + private transient JSenderCasePath _senderCase; + + /** + * Get the implicit join path to the public.sender_case table. + */ + public JSenderCasePath senderCase() { + if (_senderCase == null) + _senderCase = new JSenderCasePath(this, Keys.RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY, null); + + return _senderCase; } @Override @@ -127,6 +166,11 @@ public JRecipients as(Name alias) { return new JRecipients(alias, this); } + @Override + public JRecipients as(Table alias) { + return new JRecipients(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -143,12 +187,95 @@ public JRecipients rename(Name name) { return new JRecipients(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JRecipients rename(Table name) { + return new JRecipients(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRecipients where(Condition condition) { + return new JRecipients(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRecipients where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRecipients where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRecipients where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRecipients where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRecipients where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRecipients where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRecipients where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRecipients whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JRecipients whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JRestorePasswordBid.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JRestorePasswordBid.java index 34391445b..dbf8d13b3 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JRestorePasswordBid.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JRestorePasswordBid.java @@ -5,45 +5,40 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.tables.records.JRestorePasswordBidRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JRestorePasswordBid extends TableImpl { - private static final long serialVersionUID = -1448430102; + private static final long serialVersionUID = 1L; /** * The reference instance of public.restore_password_bid @@ -61,59 +56,52 @@ public Class getRecordType() { /** * The column public.restore_password_bid.uuid. */ - public final TableField UUID = createField(DSL.name("uuid"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.restore_password_bid.last_modified. */ - public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.restore_password_bid.email. */ - public final TableField EMAIL = createField(DSL.name("email"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR.nullable(false), this, ""); - /** - * Create a public.restore_password_bid table reference - */ - public JRestorePasswordBid() { - this(DSL.name("restore_password_bid"), null); + private JRestorePasswordBid(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JRestorePasswordBid(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** - * Create an aliased public.restore_password_bid table reference + * Create an aliased public.restore_password_bid table + * reference */ public JRestorePasswordBid(String alias) { this(DSL.name(alias), RESTORE_PASSWORD_BID); } /** - * Create an aliased public.restore_password_bid table reference + * Create an aliased public.restore_password_bid table + * reference */ public JRestorePasswordBid(Name alias) { this(alias, RESTORE_PASSWORD_BID); } - private JRestorePasswordBid(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JRestorePasswordBid(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JRestorePasswordBid(Table child, ForeignKey key) { - super(child, key, RESTORE_PASSWORD_BID); + /** + * Create a public.restore_password_bid table reference + */ + public JRestorePasswordBid() { + this(DSL.name("restore_password_bid"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.RESTORE_PASSWORD_BID_EMAIL_KEY, Indexes.RESTORE_PASSWORD_BID_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -122,8 +110,8 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.RESTORE_PASSWORD_BID_PK, Keys.RESTORE_PASSWORD_BID_EMAIL_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.RESTORE_PASSWORD_BID_EMAIL_KEY); } @Override @@ -136,6 +124,11 @@ public JRestorePasswordBid as(Name alias) { return new JRestorePasswordBid(alias, this); } + @Override + public JRestorePasswordBid as(Table alias) { + return new JRestorePasswordBid(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -152,12 +145,95 @@ public JRestorePasswordBid rename(Name name) { return new JRestorePasswordBid(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JRestorePasswordBid rename(Table name) { + return new JRestorePasswordBid(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JRestorePasswordBid where(Condition condition) { + return new JRestorePasswordBid(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRestorePasswordBid where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRestorePasswordBid where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRestorePasswordBid where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRestorePasswordBid where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRestorePasswordBid where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRestorePasswordBid where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JRestorePasswordBid where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JRestorePasswordBid whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JRestorePasswordBid whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JSenderCase.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JSenderCase.java index d58d3c003..8e3bd627a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JSenderCase.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JSenderCase.java @@ -8,43 +8,48 @@ import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JLogicalOperatorEnum; +import com.epam.ta.reportportal.jooq.tables.JLaunchAttributeRules.JLaunchAttributeRulesPath; +import com.epam.ta.reportportal.jooq.tables.JLaunchNames.JLaunchNamesPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JRecipients.JRecipientsPath; import com.epam.ta.reportportal.jooq.tables.records.JSenderCaseRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row8; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JSenderCase extends TableImpl { - private static final long serialVersionUID = -1540957688; + private static final long serialVersionUID = 1L; /** * The reference instance of public.sender_case @@ -62,48 +67,49 @@ public Class getRecordType() { /** * The column public.sender_case.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('sender_case_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.sender_case.send_case. */ - public final TableField SEND_CASE = createField(DSL.name("send_case"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField SEND_CASE = createField(DSL.name("send_case"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.sender_case.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('sender_case_project_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.sender_case.enabled. */ - public final TableField ENABLED = createField(DSL.name("enabled"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField ENABLED = createField(DSL.name("enabled"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.sender_case.attributes_operator. */ - public final TableField ATTRIBUTES_OPERATOR = createField(DSL.name("attributes_operator"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'AND'::logical_operator_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JLogicalOperatorEnum.class), this, ""); + public final TableField ATTRIBUTES_OPERATOR = createField(DSL.name("attributes_operator"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field(DSL.raw("'AND'::logical_operator_enum"), SQLDataType.VARCHAR)).asEnumDataType(JLogicalOperatorEnum.class), this, ""); /** * The column public.sender_case.rule_name. */ - public final TableField RULE_NAME = createField(DSL.name("rule_name"), org.jooq.impl.SQLDataType.VARCHAR(55).nullable(false), this, ""); + public final TableField RULE_NAME = createField(DSL.name("rule_name"), SQLDataType.VARCHAR(55).nullable(false), this, ""); /** * The column public.sender_case.rule_type. */ - public final TableField RULE_TYPE = createField(DSL.name("rule_type"), org.jooq.impl.SQLDataType.VARCHAR(55).nullable(false).defaultValue(org.jooq.impl.DSL.field("'email'::character varying", org.jooq.impl.SQLDataType.VARCHAR)), this, ""); + public final TableField RULE_TYPE = createField(DSL.name("rule_type"), SQLDataType.VARCHAR(55).nullable(false).defaultValue(DSL.field(DSL.raw("'email'::character varying"), SQLDataType.VARCHAR)), this, ""); /** * The column public.sender_case.rule_details. */ - public final TableField RULE_DETAILS = createField(DSL.name("rule_details"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField RULE_DETAILS = createField(DSL.name("rule_details"), SQLDataType.JSONB, this, ""); - /** - * Create a public.sender_case table reference - */ - public JSenderCase() { - this(DSL.name("sender_case"), null); + private JSenderCase(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JSenderCase(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -120,31 +126,59 @@ public JSenderCase(Name alias) { this(alias, SENDER_CASE); } - private JSenderCase(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.sender_case table reference + */ + public JSenderCase() { + this(DSL.name("sender_case"), null); } - private JSenderCase(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JSenderCase(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, SENDER_CASE); } - public JSenderCase(Table child, ForeignKey key) { - super(child, key, SENDER_CASE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JSenderCasePath extends JSenderCase implements Path { + + private static final long serialVersionUID = 1L; + public JSenderCasePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JSenderCasePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JSenderCasePath as(String alias) { + return new JSenderCasePath(DSL.name(alias), this); + } + + @Override + public JSenderCasePath as(Name alias) { + return new JSenderCasePath(alias, this); + } + + @Override + public JSenderCasePath as(Table alias) { + return new JSenderCasePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.SENDER_CASE_PK, Indexes.SENDER_CASE_PROJECT_IDX, Indexes.UNIQUE_RULE_NAME_PER_PROJECT_RULE_TYPE); + return Arrays.asList(Indexes.SENDER_CASE_PROJECT_IDX, Indexes.UNIQUE_RULE_NAME_PER_PROJECT_RULE_TYPE); } @Override public Identity getIdentity() { - return Keys.IDENTITY_SENDER_CASE; + return (Identity) super.getIdentity(); } @Override @@ -153,17 +187,59 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.SENDER_CASE_PK); + public List> getReferences() { + return Arrays.asList(Keys.SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY, null); + + return _project; } - public JProject project() { - return new JProject(this, Keys.SENDER_CASE__SENDER_CASE_PROJECT_ID_FKEY); + private transient JLaunchAttributeRulesPath _launchAttributeRules; + + /** + * Get the implicit to-many join path to the + * public.launch_attribute_rules table + */ + public JLaunchAttributeRulesPath launchAttributeRules() { + if (_launchAttributeRules == null) + _launchAttributeRules = new JLaunchAttributeRulesPath(this, null, Keys.LAUNCH_ATTRIBUTE_RULES__LAUNCH_ATTRIBUTE_RULES_SENDER_CASE_ID_FKEY.getInverseKey()); + + return _launchAttributeRules; + } + + private transient JLaunchNamesPath _launchNames; + + /** + * Get the implicit to-many join path to the + * public.launch_names table + */ + public JLaunchNamesPath launchNames() { + if (_launchNames == null) + _launchNames = new JLaunchNamesPath(this, null, Keys.LAUNCH_NAMES__LAUNCH_NAMES_SENDER_CASE_ID_FKEY.getInverseKey()); + + return _launchNames; + } + + private transient JRecipientsPath _recipients; + + /** + * Get the implicit to-many join path to the public.recipients + * table + */ + public JRecipientsPath recipients() { + if (_recipients == null) + _recipients = new JRecipientsPath(this, null, Keys.RECIPIENTS__RECIPIENTS_SENDER_CASE_ID_FKEY.getInverseKey()); + + return _recipients; } @Override @@ -176,6 +252,11 @@ public JSenderCase as(Name alias) { return new JSenderCase(alias, this); } + @Override + public JSenderCase as(Table alias) { + return new JSenderCase(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -192,12 +273,95 @@ public JSenderCase rename(Name name) { return new JSenderCase(name, null); } - // ------------------------------------------------------------------------- - // Row8 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JSenderCase rename(Table name) { + return new JSenderCase(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JSenderCase where(Condition condition) { + return new JSenderCase(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JSenderCase where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JSenderCase where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JSenderCase where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JSenderCase where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JSenderCase where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JSenderCase where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JSenderCase where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JSenderCase whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); + public JSenderCase whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JServerSettings.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JServerSettings.java index a25ae3e37..b94ff77c4 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JServerSettings.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JServerSettings.java @@ -4,45 +4,40 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.tables.records.JServerSettingsRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JServerSettings extends TableImpl { - private static final long serialVersionUID = -628087328; + private static final long serialVersionUID = 1L; /** * The reference instance of public.server_settings @@ -60,23 +55,24 @@ public Class getRecordType() { /** * The column public.server_settings.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('server_settings_id_seq'::regclass)", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.SMALLINT.nullable(false).identity(true), this, ""); /** * The column public.server_settings.key. */ - public final TableField KEY = createField(DSL.name("key"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.server_settings.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.VARCHAR, this, ""); - /** - * Create a public.server_settings table reference - */ - public JServerSettings() { - this(DSL.name("server_settings"), null); + private JServerSettings(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JServerSettings(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -93,31 +89,21 @@ public JServerSettings(Name alias) { this(alias, SERVER_SETTINGS); } - private JServerSettings(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JServerSettings(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JServerSettings(Table child, ForeignKey key) { - super(child, key, SERVER_SETTINGS); + /** + * Create a public.server_settings table reference + */ + public JServerSettings() { + this(DSL.name("server_settings"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.SERVER_SETTINGS_ID, Indexes.SERVER_SETTINGS_KEY_KEY); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_SERVER_SETTINGS; + return (Identity) super.getIdentity(); } @Override @@ -126,8 +112,8 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.SERVER_SETTINGS_ID, Keys.SERVER_SETTINGS_KEY_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.SERVER_SETTINGS_KEY_KEY); } @Override @@ -140,6 +126,11 @@ public JServerSettings as(Name alias) { return new JServerSettings(alias, this); } + @Override + public JServerSettings as(Table alias) { + return new JServerSettings(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -156,12 +147,95 @@ public JServerSettings rename(Name name) { return new JServerSettings(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JServerSettings rename(Table name) { + return new JServerSettings(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JServerSettings where(Condition condition) { + return new JServerSettings(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JServerSettings where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JServerSettings where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JServerSettings where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JServerSettings where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JServerSettings where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JServerSettings where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JServerSettings where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JServerSettings whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JServerSettings whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JShedlock.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JShedlock.java index dd933c549..2498d421f 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JShedlock.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JShedlock.java @@ -5,45 +5,38 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.tables.records.JShedlockRecord; import java.time.Instant; -import java.util.Arrays; -import java.util.List; - -import javax.annotation.processing.Generated; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JShedlock extends TableImpl { - private static final long serialVersionUID = -1932515469; + private static final long serialVersionUID = 1L; /** * The reference instance of public.shedlock @@ -61,28 +54,29 @@ public Class getRecordType() { /** * The column public.shedlock.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** * The column public.shedlock.lock_until. */ - public final TableField LOCK_UNTIL = createField(DSL.name("lock_until"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField LOCK_UNTIL = createField(DSL.name("lock_until"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.shedlock.locked_at. */ - public final TableField LOCKED_AT = createField(DSL.name("locked_at"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField LOCKED_AT = createField(DSL.name("locked_at"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.shedlock.locked_by. */ - public final TableField LOCKED_BY = createField(DSL.name("locked_by"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, ""); + public final TableField LOCKED_BY = createField(DSL.name("locked_by"), SQLDataType.VARCHAR(255).nullable(false), this, ""); - /** - * Create a public.shedlock table reference - */ - public JShedlock() { - this(DSL.name("shedlock"), null); + private JShedlock(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JShedlock(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -99,26 +93,16 @@ public JShedlock(Name alias) { this(alias, SHEDLOCK); } - private JShedlock(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JShedlock(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JShedlock(Table child, ForeignKey key) { - super(child, key, SHEDLOCK); + /** + * Create a public.shedlock table reference + */ + public JShedlock() { + this(DSL.name("shedlock"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.SHEDLOCK_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -126,11 +110,6 @@ public UniqueKey getPrimaryKey() { return Keys.SHEDLOCK_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.SHEDLOCK_PKEY); - } - @Override public JShedlock as(String alias) { return new JShedlock(DSL.name(alias), this); @@ -141,6 +120,11 @@ public JShedlock as(Name alias) { return new JShedlock(alias, this); } + @Override + public JShedlock as(Table alias) { + return new JShedlock(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -157,12 +141,95 @@ public JShedlock rename(Name name) { return new JShedlock(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JShedlock rename(Table name) { + return new JShedlock(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JShedlock where(Condition condition) { + return new JShedlock(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JShedlock where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JShedlock where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JShedlock where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JShedlock where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JShedlock where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JShedlock where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JShedlock where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JShedlock whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JShedlock whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JStaleMaterializedView.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JStaleMaterializedView.java index 699a4693f..4ec128d69 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JStaleMaterializedView.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JStaleMaterializedView.java @@ -12,39 +12,36 @@ import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JStaleMaterializedView extends TableImpl { - private static final long serialVersionUID = 581510835; + private static final long serialVersionUID = 1L; /** * The reference instance of public.stale_materialized_view @@ -62,64 +59,62 @@ public Class getRecordType() { /** * The column public.stale_materialized_view.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('stale_materialized_view_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.stale_materialized_view.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column public.stale_materialized_view.creation_date. */ - public final TableField CREATION_DATE = createField(DSL.name("creation_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); - /** - * Create a public.stale_materialized_view table reference - */ - public JStaleMaterializedView() { - this(DSL.name("stale_materialized_view"), null); + private JStaleMaterializedView(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JStaleMaterializedView(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** - * Create an aliased public.stale_materialized_view table reference + * Create an aliased public.stale_materialized_view table + * reference */ public JStaleMaterializedView(String alias) { this(DSL.name(alias), STALE_MATERIALIZED_VIEW); } /** - * Create an aliased public.stale_materialized_view table reference + * Create an aliased public.stale_materialized_view table + * reference */ public JStaleMaterializedView(Name alias) { this(alias, STALE_MATERIALIZED_VIEW); } - private JStaleMaterializedView(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private JStaleMaterializedView(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public JStaleMaterializedView(Table child, ForeignKey key) { - super(child, key, STALE_MATERIALIZED_VIEW); + /** + * Create a public.stale_materialized_view table reference + */ + public JStaleMaterializedView() { + this(DSL.name("stale_materialized_view"), null); } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.STALE_MATERIALIZED_VIEW_NAME_KEY, Indexes.STALE_MATERIALIZED_VIEW_PKEY, Indexes.STALE_MV_CREATION_DATE_IDX); + return Arrays.asList(Indexes.STALE_MV_CREATION_DATE_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_STALE_MATERIALIZED_VIEW; + return (Identity) super.getIdentity(); } @Override @@ -128,8 +123,8 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.STALE_MATERIALIZED_VIEW_PKEY, Keys.STALE_MATERIALIZED_VIEW_NAME_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.STALE_MATERIALIZED_VIEW_NAME_KEY); } @Override @@ -142,6 +137,11 @@ public JStaleMaterializedView as(Name alias) { return new JStaleMaterializedView(alias, this); } + @Override + public JStaleMaterializedView as(Table alias) { + return new JStaleMaterializedView(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -158,12 +158,95 @@ public JStaleMaterializedView rename(Name name) { return new JStaleMaterializedView(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JStaleMaterializedView rename(Table name) { + return new JStaleMaterializedView(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStaleMaterializedView where(Condition condition) { + return new JStaleMaterializedView(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStaleMaterializedView where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStaleMaterializedView where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStaleMaterializedView where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStaleMaterializedView where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStaleMaterializedView where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStaleMaterializedView where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStaleMaterializedView where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStaleMaterializedView whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public JStaleMaterializedView whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatistics.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatistics.java index c2fbd62de..b49483c7a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatistics.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatistics.java @@ -7,42 +7,48 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JStatisticsField.JStatisticsFieldPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JStatisticsRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Check; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.Internal; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JStatistics extends TableImpl { - private static final long serialVersionUID = -879938205; + private static final long serialVersionUID = 1L; /** * The reference instance of public.statistics @@ -60,33 +66,34 @@ public Class getRecordType() { /** * The column public.statistics.s_id. */ - public final TableField S_ID = createField(DSL.name("s_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('statistics_s_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField S_ID = createField(DSL.name("s_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.statistics.s_counter. */ - public final TableField S_COUNTER = createField(DSL.name("s_counter"), org.jooq.impl.SQLDataType.INTEGER.defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField S_COUNTER = createField(DSL.name("s_counter"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); /** * The column public.statistics.launch_id. */ - public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), SQLDataType.BIGINT, this, ""); /** * The column public.statistics.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT, this, ""); /** * The column public.statistics.statistics_field_id. */ - public final TableField STATISTICS_FIELD_ID = createField(DSL.name("statistics_field_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField STATISTICS_FIELD_ID = createField(DSL.name("statistics_field_id"), SQLDataType.BIGINT, this, ""); - /** - * Create a public.statistics table reference - */ - public JStatistics() { - this(DSL.name("statistics"), null); + private JStatistics(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JStatistics(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -103,31 +110,59 @@ public JStatistics(Name alias) { this(alias, STATISTICS); } - private JStatistics(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.statistics table reference + */ + public JStatistics() { + this(DSL.name("statistics"), null); } - private JStatistics(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JStatistics(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, STATISTICS); } - public JStatistics(Table child, ForeignKey key) { - super(child, key, STATISTICS); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JStatisticsPath extends JStatistics implements Path { + + private static final long serialVersionUID = 1L; + public JStatisticsPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JStatisticsPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JStatisticsPath as(String alias) { + return new JStatisticsPath(DSL.name(alias), this); + } + + @Override + public JStatisticsPath as(Name alias) { + return new JStatisticsPath(alias, this); + } + + @Override + public JStatisticsPath as(Table alias) { + return new JStatisticsPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.STATISTICS_LAUNCH_IDX, Indexes.STATISTICS_PK, Indexes.STATISTICS_TI_IDX, Indexes.UNIQUE_STATS_ITEM, Indexes.UNIQUE_STATS_LAUNCH); + return Arrays.asList(Indexes.STATISTICS_LAUNCH_IDX, Indexes.STATISTICS_TI_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_STATISTICS; + return (Identity) super.getIdentity(); } @Override @@ -136,25 +171,57 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.STATISTICS_PK, Keys.UNIQUE_STATS_LAUNCH, Keys.UNIQUE_STATS_ITEM); + public List> getUniqueKeys() { + return Arrays.asList(Keys.UNIQUE_STATS_ITEM, Keys.UNIQUE_STATS_LAUNCH); } @Override public List> getReferences() { - return Arrays.>asList(Keys.STATISTICS__STATISTICS_LAUNCH_ID_FKEY, Keys.STATISTICS__STATISTICS_ITEM_ID_FKEY, Keys.STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY); + return Arrays.asList(Keys.STATISTICS__STATISTICS_ITEM_ID_FKEY, Keys.STATISTICS__STATISTICS_LAUNCH_ID_FKEY, Keys.STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY); + } + + private transient JTestItemPath _testItem; + + /** + * Get the implicit join path to the public.test_item table. + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, Keys.STATISTICS__STATISTICS_ITEM_ID_FKEY, null); + + return _testItem; } - public JLaunch launch() { - return new JLaunch(this, Keys.STATISTICS__STATISTICS_LAUNCH_ID_FKEY); + private transient JLaunchPath _launch; + + /** + * Get the implicit join path to the public.launch table. + */ + public JLaunchPath launch() { + if (_launch == null) + _launch = new JLaunchPath(this, Keys.STATISTICS__STATISTICS_LAUNCH_ID_FKEY, null); + + return _launch; } - public JTestItem testItem() { - return new JTestItem(this, Keys.STATISTICS__STATISTICS_ITEM_ID_FKEY); + private transient JStatisticsFieldPath _statisticsField; + + /** + * Get the implicit join path to the public.statistics_field + * table. + */ + public JStatisticsFieldPath statisticsField() { + if (_statisticsField == null) + _statisticsField = new JStatisticsFieldPath(this, Keys.STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY, null); + + return _statisticsField; } - public JStatisticsField statisticsField() { - return new JStatisticsField(this, Keys.STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY); + @Override + public List> getChecks() { + return Arrays.asList( + Internal.createCheck(this, DSL.name("statistics_check"), "(((s_counter >= 0) AND (((item_id IS NOT NULL) AND (launch_id IS NULL)) OR ((launch_id IS NOT NULL) AND (item_id IS NULL)))))", true) + ); } @Override @@ -167,6 +234,11 @@ public JStatistics as(Name alias) { return new JStatistics(alias, this); } + @Override + public JStatistics as(Table alias) { + return new JStatistics(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -183,12 +255,95 @@ public JStatistics rename(Name name) { return new JStatistics(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JStatistics rename(Table name) { + return new JStatistics(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JStatistics where(Condition condition) { + return new JStatistics(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatistics where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatistics where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatistics where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatistics where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatistics where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatistics where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatistics where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatistics whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public JStatistics whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatisticsField.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatisticsField.java index ba03c618b..a7f5334d4 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatisticsField.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JStatisticsField.java @@ -4,45 +4,47 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JStatistics.JStatisticsPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JStatisticsFieldRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JStatisticsField extends TableImpl { - private static final long serialVersionUID = 1631655273; + private static final long serialVersionUID = 1L; /** * The reference instance of public.statistics_field @@ -60,18 +62,19 @@ public Class getRecordType() { /** * The column public.statistics_field.sf_id. */ - public final TableField SF_ID = createField(DSL.name("sf_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('statistics_field_sf_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField SF_ID = createField(DSL.name("sf_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.statistics_field.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(256).nullable(false), this, ""); - /** - * Create a public.statistics_field table reference - */ - public JStatisticsField() { - this(DSL.name("statistics_field"), null); + private JStatisticsField(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JStatisticsField(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -88,31 +91,54 @@ public JStatisticsField(Name alias) { this(alias, STATISTICS_FIELD); } - private JStatisticsField(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.statistics_field table reference + */ + public JStatisticsField() { + this(DSL.name("statistics_field"), null); } - private JStatisticsField(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JStatisticsField(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, STATISTICS_FIELD); } - public JStatisticsField(Table child, ForeignKey key) { - super(child, key, STATISTICS_FIELD); - } + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JStatisticsFieldPath extends JStatisticsField implements Path { - @Override - public Schema getSchema() { - return JPublic.PUBLIC; + private static final long serialVersionUID = 1L; + public JStatisticsFieldPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JStatisticsFieldPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JStatisticsFieldPath as(String alias) { + return new JStatisticsFieldPath(DSL.name(alias), this); + } + + @Override + public JStatisticsFieldPath as(Name alias) { + return new JStatisticsFieldPath(alias, this); + } + + @Override + public JStatisticsFieldPath as(Table alias) { + return new JStatisticsFieldPath(alias.getQualifiedName(), this); + } } @Override - public List getIndexes() { - return Arrays.asList(Indexes.STATISTICS_FIELD_NAME_KEY, Indexes.STATISTICS_FIELD_PK); + public Schema getSchema() { + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_STATISTICS_FIELD; + return (Identity) super.getIdentity(); } @Override @@ -121,8 +147,37 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.STATISTICS_FIELD_PK, Keys.STATISTICS_FIELD_NAME_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.STATISTICS_FIELD_NAME_KEY); + } + + private transient JStatisticsPath _statistics; + + /** + * Get the implicit to-many join path to the public.statistics + * table + */ + public JStatisticsPath statistics() { + if (_statistics == null) + _statistics = new JStatisticsPath(this, null, Keys.STATISTICS__STATISTICS_STATISTICS_FIELD_ID_FKEY.getInverseKey()); + + return _statistics; + } + + /** + * Get the implicit many-to-many join path to the + * public.test_item table + */ + public JTestItemPath testItem() { + return statistics().testItem(); + } + + /** + * Get the implicit many-to-many join path to the public.launch + * table + */ + public JLaunchPath launch() { + return statistics().launch(); } @Override @@ -135,6 +190,11 @@ public JStatisticsField as(Name alias) { return new JStatisticsField(alias, this); } + @Override + public JStatisticsField as(Table alias) { + return new JStatisticsField(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -151,12 +211,95 @@ public JStatisticsField rename(Name name) { return new JStatisticsField(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JStatisticsField rename(Table name) { + return new JStatisticsField(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JStatisticsField where(Condition condition) { + return new JStatisticsField(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatisticsField where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatisticsField where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatisticsField where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatisticsField where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatisticsField where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatisticsField where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JStatisticsField where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JStatisticsField whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JStatisticsField whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItem.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItem.java index 23453aaf4..ce57a3ddc 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItem.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItem.java @@ -9,43 +9,55 @@ import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JTestItemTypeEnum; +import com.epam.ta.reportportal.jooq.tables.JItemAttribute.JItemAttributePath; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JLog.JLogPath; +import com.epam.ta.reportportal.jooq.tables.JParameter.JParameterPath; +import com.epam.ta.reportportal.jooq.tables.JPatternTemplate.JPatternTemplatePath; +import com.epam.ta.reportportal.jooq.tables.JPatternTemplateTestItem.JPatternTemplateTestItemPath; +import com.epam.ta.reportportal.jooq.tables.JStatistics.JStatisticsPath; +import com.epam.ta.reportportal.jooq.tables.JStatisticsField.JStatisticsFieldPath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; +import com.epam.ta.reportportal.jooq.tables.JTestItemResults.JTestItemResultsPath; import com.epam.ta.reportportal.jooq.tables.records.JTestItemRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row18; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.DefaultDataType; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JTestItem extends TableImpl { - private static final long serialVersionUID = 767540278; + private static final long serialVersionUID = 1L; /** * The reference instance of public.test_item @@ -63,98 +75,99 @@ public Class getRecordType() { /** * The column public.test_item.item_id. */ - public final TableField ITEM_ID = createField(DSL.name("item_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('test_item_item_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ITEM_ID = createField(DSL.name("item_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.test_item.uuid. */ - public final TableField UUID = createField(DSL.name("uuid"), org.jooq.impl.SQLDataType.VARCHAR(36).nullable(false), this, ""); + public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.VARCHAR(36).nullable(false), this, ""); /** * The column public.test_item.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(1024), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(1024), this, ""); /** * The column public.test_item.code_ref. */ - public final TableField CODE_REF = createField(DSL.name("code_ref"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField CODE_REF = createField(DSL.name("code_ref"), SQLDataType.VARCHAR, this, ""); /** * The column public.test_item.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JTestItemTypeEnum.class), this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JTestItemTypeEnum.class), this, ""); /** * The column public.test_item.start_time. */ - public final TableField START_TIME = createField(DSL.name("start_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField START_TIME = createField(DSL.name("start_time"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.test_item.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); /** * The column public.test_item.last_modified. */ - public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new JooqInstantConverter()); + public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "", new JooqInstantConverter()); /** * The column public.test_item.path. */ - public final TableField PATH = createField(DSL.name("path"), org.jooq.impl.DefaultDataType.getDefaultDataType("\"public\".\"ltree\""), this, ""); + public final TableField PATH = createField(DSL.name("path"), DefaultDataType.getDefaultDataType("\"public\".\"ltree\""), this, ""); /** * The column public.test_item.unique_id. */ - public final TableField UNIQUE_ID = createField(DSL.name("unique_id"), org.jooq.impl.SQLDataType.VARCHAR(1024), this, ""); + public final TableField UNIQUE_ID = createField(DSL.name("unique_id"), SQLDataType.VARCHAR(1024), this, ""); /** * The column public.test_item.test_case_id. */ - public final TableField TEST_CASE_ID = createField(DSL.name("test_case_id"), org.jooq.impl.SQLDataType.VARCHAR(1024), this, ""); + public final TableField TEST_CASE_ID = createField(DSL.name("test_case_id"), SQLDataType.VARCHAR(1024), this, ""); /** * The column public.test_item.has_children. */ - public final TableField HAS_CHILDREN = createField(DSL.name("has_children"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField HAS_CHILDREN = createField(DSL.name("has_children"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.test_item.has_retries. */ - public final TableField HAS_RETRIES = createField(DSL.name("has_retries"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField HAS_RETRIES = createField(DSL.name("has_retries"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.test_item.has_stats. */ - public final TableField HAS_STATS = createField(DSL.name("has_stats"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField HAS_STATS = createField(DSL.name("has_stats"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, ""); /** * The column public.test_item.parent_id. */ - public final TableField PARENT_ID = createField(DSL.name("parent_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField PARENT_ID = createField(DSL.name("parent_id"), SQLDataType.BIGINT, this, ""); /** * The column public.test_item.retry_of. */ - public final TableField RETRY_OF = createField(DSL.name("retry_of"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField RETRY_OF = createField(DSL.name("retry_of"), SQLDataType.BIGINT, this, ""); /** * The column public.test_item.launch_id. */ - public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField LAUNCH_ID = createField(DSL.name("launch_id"), SQLDataType.BIGINT, this, ""); /** * The column public.test_item.test_case_hash. */ - public final TableField TEST_CASE_HASH = createField(DSL.name("test_case_hash"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField TEST_CASE_HASH = createField(DSL.name("test_case_hash"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a public.test_item table reference - */ - public JTestItem() { - this(DSL.name("test_item"), null); + private JTestItem(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JTestItem(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -171,31 +184,59 @@ public JTestItem(Name alias) { this(alias, TEST_ITEM); } - private JTestItem(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.test_item table reference + */ + public JTestItem() { + this(DSL.name("test_item"), null); } - private JTestItem(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JTestItem(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, TEST_ITEM); } - public JTestItem(Table child, ForeignKey key) { - super(child, key, TEST_ITEM); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JTestItemPath extends JTestItem implements Path { + + private static final long serialVersionUID = 1L; + public JTestItemPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JTestItemPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JTestItemPath as(String alias) { + return new JTestItemPath(DSL.name(alias), this); + } + + @Override + public JTestItemPath as(Name alias) { + return new JTestItemPath(alias, this); + } + + @Override + public JTestItemPath as(Table alias) { + return new JTestItemPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.ITEM_TEST_CASE_ID_LAUNCH_ID_IDX, Indexes.PATH_GIST_IDX, Indexes.TEST_CASE_HASH_LAUNCH_ID_IDX, Indexes.TEST_ITEM_PK, Indexes.TEST_ITEM_UNIQUE_ID_LAUNCH_ID_IDX, Indexes.TEST_ITEM_UUID_KEY, Indexes.TI_LAUNCH_IDX, Indexes.TI_PARENT_IDX, Indexes.TI_RETRY_OF_IDX); + return Arrays.asList(Indexes.ITEM_TEST_CASE_ID_LAUNCH_ID_IDX, Indexes.PATH_GIST_IDX, Indexes.TEST_CASE_HASH_LAUNCH_ID_IDX, Indexes.TEST_ITEM_UNIQUE_ID_LAUNCH_ID_IDX, Indexes.TI_LAUNCH_IDX, Indexes.TI_PARENT_IDX, Indexes.TI_RETRY_OF_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_TEST_ITEM; + return (Identity) super.getIdentity(); } @Override @@ -204,25 +245,144 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.TEST_ITEM_PK, Keys.TEST_ITEM_UUID_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.TEST_ITEM_UUID_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY, Keys.TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY, Keys.TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY); + return Arrays.asList(Keys.TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY, Keys.TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY, Keys.TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY); + } + + private transient JLaunchPath _launch; + + /** + * Get the implicit join path to the public.launch table. + */ + public JLaunchPath launch() { + if (_launch == null) + _launch = new JLaunchPath(this, Keys.TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY, null); + + return _launch; + } + + private transient JTestItemPath _testItemParentIdFkey; + + /** + * Get the implicit join path to the public.test_item table, + * via the test_item_parent_id_fkey key. + */ + public JTestItemPath testItemParentIdFkey() { + if (_testItemParentIdFkey == null) + _testItemParentIdFkey = new JTestItemPath(this, Keys.TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY, null); + + return _testItemParentIdFkey; + } + + private transient JTestItemPath _testItemRetryOfFkey; + + /** + * Get the implicit join path to the public.test_item table, + * via the test_item_retry_of_fkey key. + */ + public JTestItemPath testItemRetryOfFkey() { + if (_testItemRetryOfFkey == null) + _testItemRetryOfFkey = new JTestItemPath(this, Keys.TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY, null); + + return _testItemRetryOfFkey; + } + + private transient JItemAttributePath _itemAttribute; + + /** + * Get the implicit to-many join path to the + * public.item_attribute table + */ + public JItemAttributePath itemAttribute() { + if (_itemAttribute == null) + _itemAttribute = new JItemAttributePath(this, null, Keys.ITEM_ATTRIBUTE__ITEM_ATTRIBUTE_ITEM_ID_FKEY.getInverseKey()); + + return _itemAttribute; + } + + private transient JLogPath _log; + + /** + * Get the implicit to-many join path to the public.log table + */ + public JLogPath log() { + if (_log == null) + _log = new JLogPath(this, null, Keys.LOG__LOG_ITEM_ID_FKEY.getInverseKey()); + + return _log; + } + + private transient JParameterPath _parameter; + + /** + * Get the implicit to-many join path to the public.parameter + * table + */ + public JParameterPath parameter() { + if (_parameter == null) + _parameter = new JParameterPath(this, null, Keys.PARAMETER__PARAMETER_ITEM_ID_FKEY.getInverseKey()); + + return _parameter; + } + + private transient JPatternTemplateTestItemPath _patternTemplateTestItem; + + /** + * Get the implicit to-many join path to the + * public.pattern_template_test_item table + */ + public JPatternTemplateTestItemPath patternTemplateTestItem() { + if (_patternTemplateTestItem == null) + _patternTemplateTestItem = new JPatternTemplateTestItemPath(this, null, Keys.PATTERN_TEMPLATE_TEST_ITEM__PATTERN_TEMPLATE_TEST_ITEM_ITEM_ID_FKEY.getInverseKey()); + + return _patternTemplateTestItem; + } + + private transient JStatisticsPath _statistics; + + /** + * Get the implicit to-many join path to the public.statistics + * table + */ + public JStatisticsPath statistics() { + if (_statistics == null) + _statistics = new JStatisticsPath(this, null, Keys.STATISTICS__STATISTICS_ITEM_ID_FKEY.getInverseKey()); + + return _statistics; } - public com.epam.ta.reportportal.jooq.tables.JTestItem testItem_TestItemParentIdFkey() { - return new com.epam.ta.reportportal.jooq.tables.JTestItem(this, Keys.TEST_ITEM__TEST_ITEM_PARENT_ID_FKEY); + private transient JTestItemResultsPath _testItemResults; + + /** + * Get the implicit to-many join path to the + * public.test_item_results table + */ + public JTestItemResultsPath testItemResults() { + if (_testItemResults == null) + _testItemResults = new JTestItemResultsPath(this, null, Keys.TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY.getInverseKey()); + + return _testItemResults; } - public com.epam.ta.reportportal.jooq.tables.JTestItem testItem_TestItemRetryOfFkey() { - return new com.epam.ta.reportportal.jooq.tables.JTestItem(this, Keys.TEST_ITEM__TEST_ITEM_RETRY_OF_FKEY); + /** + * Get the implicit many-to-many join path to the + * public.pattern_template table + */ + public JPatternTemplatePath patternTemplate() { + return patternTemplateTestItem().patternTemplate(); } - public JLaunch launch() { - return new JLaunch(this, Keys.TEST_ITEM__TEST_ITEM_LAUNCH_ID_FKEY); + /** + * Get the implicit many-to-many join path to the + * public.statistics_field table + */ + public JStatisticsFieldPath statisticsField() { + return statistics().statisticsField(); } @Override @@ -235,6 +395,11 @@ public JTestItem as(Name alias) { return new JTestItem(alias, this); } + @Override + public JTestItem as(Table alias) { + return new JTestItem(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -251,12 +416,95 @@ public JTestItem rename(Name name) { return new JTestItem(name, null); } - // ------------------------------------------------------------------------- - // Row18 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JTestItem rename(Table name) { + return new JTestItem(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItem where(Condition condition) { + return new JTestItem(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItem where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItem where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItem where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItem where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItem where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItem where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItem where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItem whereExists(Select select) { + return where(DSL.exists(select)); + } + /** + * Create an inline derived table from this table + */ @Override - public Row18 fieldsRow() { - return (Row18) super.fieldsRow(); + public JTestItem whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItemResults.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItemResults.java index 8f0c8bf7d..530bb90cc 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItemResults.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JTestItemResults.java @@ -5,46 +5,47 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; import com.epam.ta.reportportal.jooq.enums.JStatusEnum; +import com.epam.ta.reportportal.jooq.tables.JIssue.JIssuePath; +import com.epam.ta.reportportal.jooq.tables.JTestItem.JTestItemPath; import com.epam.ta.reportportal.jooq.tables.records.JTestItemResultsRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JTestItemResults extends TableImpl { - private static final long serialVersionUID = -722704972; + private static final long serialVersionUID = 1L; /** * The reference instance of public.test_item_results @@ -62,28 +63,29 @@ public Class getRecordType() { /** * The column public.test_item_results.result_id. */ - public final TableField RESULT_ID = createField(DSL.name("result_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField RESULT_ID = createField(DSL.name("result_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.test_item_results.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(com.epam.ta.reportportal.jooq.enums.JStatusEnum.class), this, ""); + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(JStatusEnum.class), this, ""); /** * The column public.test_item_results.end_time. */ - public final TableField END_TIME = createField(DSL.name("end_time"), org.jooq.impl.SQLDataType.TIMESTAMP, this, "", new JooqInstantConverter()); + public final TableField END_TIME = createField(DSL.name("end_time"), SQLDataType.LOCALDATETIME(6), this, "", new JooqInstantConverter()); /** * The column public.test_item_results.duration. */ - public final TableField DURATION = createField(DSL.name("duration"), org.jooq.impl.SQLDataType.DOUBLE, this, ""); + public final TableField DURATION = createField(DSL.name("duration"), SQLDataType.DOUBLE, this, ""); - /** - * Create a public.test_item_results table reference - */ - public JTestItemResults() { - this(DSL.name("test_item_results"), null); + private JTestItemResults(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JTestItemResults(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -100,26 +102,49 @@ public JTestItemResults(Name alias) { this(alias, TEST_ITEM_RESULTS); } - private JTestItemResults(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.test_item_results table reference + */ + public JTestItemResults() { + this(DSL.name("test_item_results"), null); } - private JTestItemResults(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JTestItemResults(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, TEST_ITEM_RESULTS); } - public JTestItemResults(Table child, ForeignKey key) { - super(child, key, TEST_ITEM_RESULTS); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JTestItemResultsPath extends JTestItemResults implements Path { + + private static final long serialVersionUID = 1L; + public JTestItemResultsPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JTestItemResultsPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JTestItemResultsPath as(String alias) { + return new JTestItemResultsPath(DSL.name(alias), this); + } + + @Override + public JTestItemResultsPath as(Name alias) { + return new JTestItemResultsPath(alias, this); + } + + @Override + public JTestItemResultsPath as(Table alias) { + return new JTestItemResultsPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.TEST_ITEM_RESULTS_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -128,17 +153,32 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.TEST_ITEM_RESULTS_PK); + public List> getReferences() { + return Arrays.asList(Keys.TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY); + private transient JTestItemPath _testItem; + + /** + * Get the implicit join path to the public.test_item table. + */ + public JTestItemPath testItem() { + if (_testItem == null) + _testItem = new JTestItemPath(this, Keys.TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY, null); + + return _testItem; } - public JTestItem testItem() { - return new JTestItem(this, Keys.TEST_ITEM_RESULTS__TEST_ITEM_RESULTS_RESULT_ID_FKEY); + private transient JIssuePath _issue; + + /** + * Get the implicit to-many join path to the public.issue table + */ + public JIssuePath issue() { + if (_issue == null) + _issue = new JIssuePath(this, null, Keys.ISSUE__ISSUE_ISSUE_ID_FKEY.getInverseKey()); + + return _issue; } @Override @@ -151,6 +191,11 @@ public JTestItemResults as(Name alias) { return new JTestItemResults(alias, this); } + @Override + public JTestItemResults as(Table alias) { + return new JTestItemResults(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -167,12 +212,95 @@ public JTestItemResults rename(Name name) { return new JTestItemResults(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JTestItemResults rename(Table name) { + return new JTestItemResults(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItemResults where(Condition condition) { + return new JTestItemResults(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItemResults where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItemResults where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItemResults where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItemResults where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItemResults where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItemResults where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTestItemResults where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTestItemResults whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JTestItemResults whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JTicket.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JTicket.java index 9d47ce94a..81b94c129 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JTicket.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JTicket.java @@ -8,43 +8,46 @@ import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JIssue.JIssuePath; +import com.epam.ta.reportportal.jooq.tables.JIssueTicket.JIssueTicketPath; import com.epam.ta.reportportal.jooq.tables.records.JTicketRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row8; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JTicket extends TableImpl { - private static final long serialVersionUID = -1169544097; + private static final long serialVersionUID = 1L; /** * The reference instance of public.ticket @@ -62,48 +65,49 @@ public Class getRecordType() { /** * The column public.ticket.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('ticket_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.ticket.ticket_id. */ - public final TableField TICKET_ID = createField(DSL.name("ticket_id"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField TICKET_ID = createField(DSL.name("ticket_id"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column public.ticket.submitter. */ - public final TableField SUBMITTER = createField(DSL.name("submitter"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField SUBMITTER = createField(DSL.name("submitter"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.ticket.submit_date. */ - public final TableField SUBMIT_DATE = createField(DSL.name("submit_date"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField SUBMIT_DATE = createField(DSL.name("submit_date"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.ticket.bts_url. */ - public final TableField BTS_URL = createField(DSL.name("bts_url"), org.jooq.impl.SQLDataType.VARCHAR(1024).nullable(false), this, ""); + public final TableField BTS_URL = createField(DSL.name("bts_url"), SQLDataType.VARCHAR(1024).nullable(false), this, ""); /** * The column public.ticket.bts_project. */ - public final TableField BTS_PROJECT = createField(DSL.name("bts_project"), org.jooq.impl.SQLDataType.VARCHAR(1024).nullable(false), this, ""); + public final TableField BTS_PROJECT = createField(DSL.name("bts_project"), SQLDataType.VARCHAR(1024).nullable(false), this, ""); /** * The column public.ticket.url. */ - public final TableField URL = createField(DSL.name("url"), org.jooq.impl.SQLDataType.VARCHAR(1024).nullable(false), this, ""); + public final TableField URL = createField(DSL.name("url"), SQLDataType.VARCHAR(1024).nullable(false), this, ""); /** * The column public.ticket.plugin_name. */ - public final TableField PLUGIN_NAME = createField(DSL.name("plugin_name"), org.jooq.impl.SQLDataType.VARCHAR(128), this, ""); + public final TableField PLUGIN_NAME = createField(DSL.name("plugin_name"), SQLDataType.VARCHAR(128), this, ""); - /** - * Create a public.ticket table reference - */ - public JTicket() { - this(DSL.name("ticket"), null); + private JTicket(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JTicket(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -120,31 +124,59 @@ public JTicket(Name alias) { this(alias, TICKET); } - private JTicket(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.ticket table reference + */ + public JTicket() { + this(DSL.name("ticket"), null); } - private JTicket(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JTicket(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, TICKET); } - public JTicket(Table child, ForeignKey key) { - super(child, key, TICKET); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JTicketPath extends JTicket implements Path { + + private static final long serialVersionUID = 1L; + public JTicketPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JTicketPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JTicketPath as(String alias) { + return new JTicketPath(DSL.name(alias), this); + } + + @Override + public JTicketPath as(Name alias) { + return new JTicketPath(alias, this); + } + + @Override + public JTicketPath as(Table alias) { + return new JTicketPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; + return aliased() ? null : JPublic.PUBLIC; } @Override public List getIndexes() { - return Arrays.asList(Indexes.TICKET_ID_IDX, Indexes.TICKET_PK, Indexes.TICKET_SUBMITTER_IDX); + return Arrays.asList(Indexes.TICKET_ID_IDX, Indexes.TICKET_SUBMITTER_IDX); } @Override public Identity getIdentity() { - return Keys.IDENTITY_TICKET; + return (Identity) super.getIdentity(); } @Override @@ -152,9 +184,25 @@ public UniqueKey getPrimaryKey() { return Keys.TICKET_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.TICKET_PK); + private transient JIssueTicketPath _issueTicket; + + /** + * Get the implicit to-many join path to the + * public.issue_ticket table + */ + public JIssueTicketPath issueTicket() { + if (_issueTicket == null) + _issueTicket = new JIssueTicketPath(this, null, Keys.ISSUE_TICKET__ISSUE_TICKET_TICKET_ID_FKEY.getInverseKey()); + + return _issueTicket; + } + + /** + * Get the implicit many-to-many join path to the public.issue + * table + */ + public JIssuePath issue() { + return issueTicket().issue(); } @Override @@ -167,6 +215,11 @@ public JTicket as(Name alias) { return new JTicket(alias, this); } + @Override + public JTicket as(Table alias) { + return new JTicket(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -183,12 +236,95 @@ public JTicket rename(Name name) { return new JTicket(name, null); } - // ------------------------------------------------------------------------- - // Row8 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JTicket rename(Table name) { + return new JTicket(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTicket where(Condition condition) { + return new JTicket(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JTicket where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTicket where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTicket where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTicket where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTicket where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTicket where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JTicket where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JTicket whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); + public JTicket whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserCreationBid.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserCreationBid.java index 9949b233b..22cfa51e7 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserCreationBid.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserCreationBid.java @@ -5,46 +5,46 @@ import com.epam.ta.reportportal.dao.converters.JooqInstantConverter; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JUsers.JUsersPath; import com.epam.ta.reportportal.jooq.tables.records.JUserCreationBidRecord; import java.time.Instant; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row7; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JUserCreationBid extends TableImpl { - private static final long serialVersionUID = -842162999; + private static final long serialVersionUID = 1L; /** * The reference instance of public.user_creation_bid @@ -62,43 +62,44 @@ public Class getRecordType() { /** * The column public.user_creation_bid.uuid. */ - public final TableField UUID = createField(DSL.name("uuid"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.user_creation_bid.last_modified. */ - public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "", new JooqInstantConverter()); + public final TableField LAST_MODIFIED = createField(DSL.name("last_modified"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "", new JooqInstantConverter()); /** * The column public.user_creation_bid.email. */ - public final TableField EMAIL = createField(DSL.name("email"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); - - /** - * The column public.user_creation_bid.role. - */ - public final TableField ROLE = createField(DSL.name("role"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.user_creation_bid.inviting_user_id. */ - public final TableField INVITING_USER_ID = createField(DSL.name("inviting_user_id"), org.jooq.impl.SQLDataType.BIGINT, this, ""); + public final TableField INVITING_USER_ID = createField(DSL.name("inviting_user_id"), SQLDataType.BIGINT, this, ""); /** * The column public.user_creation_bid.project_name. */ - public final TableField PROJECT_NAME = createField(DSL.name("project_name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.user_creation_bid.metadata. */ - public final TableField METADATA = createField(DSL.name("metadata"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField METADATA = createField(DSL.name("metadata"), SQLDataType.JSONB, this, ""); /** - * Create a public.user_creation_bid table reference + * The column public.user_creation_bid.role. */ - public JUserCreationBid() { - this(DSL.name("user_creation_bid"), null); + public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false), this, ""); + + private JUserCreationBid(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JUserCreationBid(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -115,26 +116,49 @@ public JUserCreationBid(Name alias) { this(alias, USER_CREATION_BID); } - private JUserCreationBid(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.user_creation_bid table reference + */ + public JUserCreationBid() { + this(DSL.name("user_creation_bid"), null); } - private JUserCreationBid(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JUserCreationBid(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, USER_CREATION_BID); } - public JUserCreationBid(Table child, ForeignKey key) { - super(child, key, USER_CREATION_BID); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JUserCreationBidPath extends JUserCreationBid implements Path { + + private static final long serialVersionUID = 1L; + public JUserCreationBidPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JUserCreationBidPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JUserCreationBidPath as(String alias) { + return new JUserCreationBidPath(DSL.name(alias), this); + } + + @Override + public JUserCreationBidPath as(Name alias) { + return new JUserCreationBidPath(alias, this); + } + + @Override + public JUserCreationBidPath as(Table alias) { + return new JUserCreationBidPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.USER_CREATION_BID_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -142,18 +166,21 @@ public UniqueKey getPrimaryKey() { return Keys.USER_CREATION_BID_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.USER_CREATION_BID_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY); + return Arrays.asList(Keys.USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY); } - public JUsers users() { - return new JUsers(this, Keys.USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY); + private transient JUsersPath _users; + + /** + * Get the implicit join path to the public.users table. + */ + public JUsersPath users() { + if (_users == null) + _users = new JUsersPath(this, Keys.USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY, null); + + return _users; } @Override @@ -166,6 +193,11 @@ public JUserCreationBid as(Name alias) { return new JUserCreationBid(alias, this); } + @Override + public JUserCreationBid as(Table alias) { + return new JUserCreationBid(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -182,12 +214,95 @@ public JUserCreationBid rename(Name name) { return new JUserCreationBid(name, null); } - // ------------------------------------------------------------------------- - // Row7 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JUserCreationBid rename(Table name) { + return new JUserCreationBid(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserCreationBid where(Condition condition) { + return new JUserCreationBid(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserCreationBid where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserCreationBid where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserCreationBid where(Field condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserCreationBid where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserCreationBid where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserCreationBid where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserCreationBid where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserCreationBid whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public JUserCreationBid whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserPreference.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserPreference.java index 9640cdd36..9c990c67c 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserPreference.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JUserPreference.java @@ -4,45 +4,47 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JFilter.JFilterPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JUsers.JUsersPath; import com.epam.ta.reportportal.jooq.tables.records.JUserPreferenceRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JUserPreference extends TableImpl { - private static final long serialVersionUID = 732684537; + private static final long serialVersionUID = 1L; /** * The reference instance of public.user_preference @@ -60,28 +62,29 @@ public Class getRecordType() { /** * The column public.user_preference.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('user_preference_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.user_preference.project_id. */ - public final TableField PROJECT_ID = createField(DSL.name("project_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.user_preference.user_id. */ - public final TableField USER_ID = createField(DSL.name("user_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.user_preference.filter_id. */ - public final TableField FILTER_ID = createField(DSL.name("filter_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField FILTER_ID = createField(DSL.name("filter_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.user_preference table reference - */ - public JUserPreference() { - this(DSL.name("user_preference"), null); + private JUserPreference(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JUserPreference(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -98,31 +101,54 @@ public JUserPreference(Name alias) { this(alias, USER_PREFERENCE); } - private JUserPreference(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.user_preference table reference + */ + public JUserPreference() { + this(DSL.name("user_preference"), null); } - private JUserPreference(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JUserPreference(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, USER_PREFERENCE); } - public JUserPreference(Table child, ForeignKey key) { - super(child, key, USER_PREFERENCE); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JUserPreferencePath extends JUserPreference implements Path { + + private static final long serialVersionUID = 1L; + public JUserPreferencePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JUserPreferencePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JUserPreferencePath as(String alias) { + return new JUserPreferencePath(DSL.name(alias), this); + } + + @Override + public JUserPreferencePath as(Name alias) { + return new JUserPreferencePath(alias, this); + } + + @Override + public JUserPreferencePath as(Table alias) { + return new JUserPreferencePath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.USER_PREFERENCE_PK, Indexes.USER_PREFERENCE_UQ); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_USER_PREFERENCE; + return (Identity) super.getIdentity(); } @Override @@ -131,25 +157,49 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.USER_PREFERENCE_PK, Keys.USER_PREFERENCE_UQ); + public List> getUniqueKeys() { + return Arrays.asList(Keys.USER_PREFERENCE_UQ); } @Override public List> getReferences() { - return Arrays.>asList(Keys.USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY, Keys.USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY, Keys.USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY); + return Arrays.asList(Keys.USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY, Keys.USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY, Keys.USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY); } - public JProject project() { - return new JProject(this, Keys.USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY); + private transient JFilterPath _filter; + + /** + * Get the implicit join path to the public.filter table. + */ + public JFilterPath filter() { + if (_filter == null) + _filter = new JFilterPath(this, Keys.USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY, null); + + return _filter; } - public JUsers users() { - return new JUsers(this, Keys.USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY); + private transient JProjectPath _project; + + /** + * Get the implicit join path to the public.project table. + */ + public JProjectPath project() { + if (_project == null) + _project = new JProjectPath(this, Keys.USER_PREFERENCE__USER_PREFERENCE_PROJECT_ID_FKEY, null); + + return _project; } - public JFilter filter() { - return new JFilter(this, Keys.USER_PREFERENCE__USER_PREFERENCE_FILTER_ID_FKEY); + private transient JUsersPath _users; + + /** + * Get the implicit join path to the public.users table. + */ + public JUsersPath users() { + if (_users == null) + _users = new JUsersPath(this, Keys.USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY, null); + + return _users; } @Override @@ -162,6 +212,11 @@ public JUserPreference as(Name alias) { return new JUserPreference(alias, this); } + @Override + public JUserPreference as(Table alias) { + return new JUserPreference(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -178,12 +233,95 @@ public JUserPreference rename(Name name) { return new JUserPreference(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JUserPreference rename(Table name) { + return new JUserPreference(name.getQualifiedName(), null); + } + /** + * Create an inline derived table from this table + */ + @Override + public JUserPreference where(Condition condition) { + return new JUserPreference(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserPreference where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserPreference where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserPreference where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserPreference where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserPreference where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserPreference where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUserPreference where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUserPreference whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public JUserPreference whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JUsers.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JUsers.java index b3693cc30..9f661bc57 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JUsers.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JUsers.java @@ -4,47 +4,51 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JApiKeys.JApiKeysPath; +import com.epam.ta.reportportal.jooq.tables.JLaunch.JLaunchPath; +import com.epam.ta.reportportal.jooq.tables.JProject.JProjectPath; +import com.epam.ta.reportportal.jooq.tables.JProjectUser.JProjectUserPath; +import com.epam.ta.reportportal.jooq.tables.JUserCreationBid.JUserCreationBidPath; +import com.epam.ta.reportportal.jooq.tables.JUserPreference.JUserPreferencePath; import com.epam.ta.reportportal.jooq.tables.records.JUsersRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import java.util.UUID; - -import javax.annotation.processing.Generated; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row14; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JUsers extends TableImpl { - private static final long serialVersionUID = 541188090; + private static final long serialVersionUID = 1L; /** * The reference instance of public.users @@ -62,78 +66,79 @@ public Class getRecordType() { /** * The column public.users.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('users_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** * The column public.users.login. */ - public final TableField LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.users.password. */ - public final TableField PASSWORD = createField(DSL.name("password"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.VARCHAR, this, ""); /** * The column public.users.email. */ - public final TableField EMAIL = createField(DSL.name("email"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.users.attachment. */ - public final TableField ATTACHMENT = createField(DSL.name("attachment"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField ATTACHMENT = createField(DSL.name("attachment"), SQLDataType.VARCHAR, this, ""); /** * The column public.users.attachment_thumbnail. */ - public final TableField ATTACHMENT_THUMBNAIL = createField(DSL.name("attachment_thumbnail"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField ATTACHMENT_THUMBNAIL = createField(DSL.name("attachment_thumbnail"), SQLDataType.VARCHAR, this, ""); /** * The column public.users.role. */ - public final TableField ROLE = createField(DSL.name("role"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.users.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.users.expired. */ - public final TableField EXPIRED = createField(DSL.name("expired"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, ""); + public final TableField EXPIRED = createField(DSL.name("expired"), SQLDataType.BOOLEAN.nullable(false), this, ""); /** * The column public.users.full_name. */ - public final TableField FULL_NAME = createField(DSL.name("full_name"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField FULL_NAME = createField(DSL.name("full_name"), SQLDataType.VARCHAR, this, ""); /** * The column public.users.metadata. */ - public final TableField METADATA = createField(DSL.name("metadata"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField METADATA = createField(DSL.name("metadata"), SQLDataType.JSONB, this, ""); /** * The column public.users.uuid. */ - public final TableField UUID = createField(DSL.name("uuid"), org.jooq.impl.SQLDataType.UUID.nullable(false).defaultValue(org.jooq.impl.DSL.field("gen_random_uuid()", org.jooq.impl.SQLDataType.UUID)), this, ""); + public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.UUID.nullable(false).defaultValue(DSL.field(DSL.raw("gen_random_uuid()"), SQLDataType.UUID)), this, ""); /** * The column public.users.external_id. */ - public final TableField EXTERNAL_ID = createField(DSL.name("external_id"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField EXTERNAL_ID = createField(DSL.name("external_id"), SQLDataType.VARCHAR, this, ""); /** * The column public.users.active. */ - public final TableField ACTIVE = createField(DSL.name("active"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField ACTIVE = createField(DSL.name("active"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, ""); - /** - * Create a public.users table reference - */ - public JUsers() { - this(DSL.name("users"), null); + private JUsers(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JUsers(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -150,31 +155,54 @@ public JUsers(Name alias) { this(alias, USERS); } - private JUsers(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.users table reference + */ + public JUsers() { + this(DSL.name("users"), null); } - private JUsers(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JUsers(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, USERS); } - public JUsers(Table child, ForeignKey key) { - super(child, key, USERS); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JUsersPath extends JUsers implements Path { + + private static final long serialVersionUID = 1L; + public JUsersPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JUsersPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JUsersPath as(String alias) { + return new JUsersPath(DSL.name(alias), this); + } + + @Override + public JUsersPath as(Name alias) { + return new JUsersPath(alias, this); + } + + @Override + public JUsersPath as(Table alias) { + return new JUsersPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.USERS_EMAIL_KEY, Indexes.USERS_LOGIN_KEY, Indexes.USERS_PK); + return aliased() ? null : JPublic.PUBLIC; } @Override public Identity getIdentity() { - return Keys.IDENTITY_USERS; + return (Identity) super.getIdentity(); } @Override @@ -183,8 +211,81 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.USERS_PK, Keys.USERS_LOGIN_KEY, Keys.USERS_EMAIL_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.USERS_EMAIL_KEY, Keys.USERS_LOGIN_KEY); + } + + private transient JApiKeysPath _apiKeys; + + /** + * Get the implicit to-many join path to the public.api_keys + * table + */ + public JApiKeysPath apiKeys() { + if (_apiKeys == null) + _apiKeys = new JApiKeysPath(this, null, Keys.API_KEYS__API_KEYS_USER_ID_FKEY.getInverseKey()); + + return _apiKeys; + } + + private transient JLaunchPath _launch; + + /** + * Get the implicit to-many join path to the public.launch + * table + */ + public JLaunchPath launch() { + if (_launch == null) + _launch = new JLaunchPath(this, null, Keys.LAUNCH__LAUNCH_USER_ID_FKEY.getInverseKey()); + + return _launch; + } + + private transient JProjectUserPath _projectUser; + + /** + * Get the implicit to-many join path to the + * public.project_user table + */ + public JProjectUserPath projectUser() { + if (_projectUser == null) + _projectUser = new JProjectUserPath(this, null, Keys.PROJECT_USER__PROJECT_USER_USER_ID_FKEY.getInverseKey()); + + return _projectUser; + } + + private transient JUserCreationBidPath _userCreationBid; + + /** + * Get the implicit to-many join path to the + * public.user_creation_bid table + */ + public JUserCreationBidPath userCreationBid() { + if (_userCreationBid == null) + _userCreationBid = new JUserCreationBidPath(this, null, Keys.USER_CREATION_BID__USER_CREATION_BID_INVITING_USER_ID_FKEY.getInverseKey()); + + return _userCreationBid; + } + + private transient JUserPreferencePath _userPreference; + + /** + * Get the implicit to-many join path to the + * public.user_preference table + */ + public JUserPreferencePath userPreference() { + if (_userPreference == null) + _userPreference = new JUserPreferencePath(this, null, Keys.USER_PREFERENCE__USER_PREFERENCE_USER_ID_FKEY.getInverseKey()); + + return _userPreference; + } + + /** + * Get the implicit many-to-many join path to the + * public.project table + */ + public JProjectPath project() { + return projectUser().project(); } @Override @@ -197,6 +298,11 @@ public JUsers as(Name alias) { return new JUsers(alias, this); } + @Override + public JUsers as(Table alias) { + return new JUsers(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -213,12 +319,95 @@ public JUsers rename(Name name) { return new JUsers(name, null); } - // ------------------------------------------------------------------------- - // Row14 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JUsers rename(Table name) { + return new JUsers(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUsers where(Condition condition) { + return new JUsers(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUsers where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUsers where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUsers where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUsers where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUsers where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUsers where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JUsers where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JUsers whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row14 fieldsRow() { - return (Row14) super.fieldsRow(); + public JUsers whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidget.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidget.java index 611428f13..5a6f6e122 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidget.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidget.java @@ -4,45 +4,50 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JContentField.JContentFieldPath; +import com.epam.ta.reportportal.jooq.tables.JDashboard.JDashboardPath; +import com.epam.ta.reportportal.jooq.tables.JDashboardWidget.JDashboardWidgetPath; +import com.epam.ta.reportportal.jooq.tables.JFilter.JFilterPath; +import com.epam.ta.reportportal.jooq.tables.JOwnedEntity.JOwnedEntityPath; +import com.epam.ta.reportportal.jooq.tables.JWidgetFilter.JWidgetFilterPath; import com.epam.ta.reportportal.jooq.tables.records.JWidgetRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.JSONB; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JWidget extends TableImpl { - private static final long serialVersionUID = 1350743694; + private static final long serialVersionUID = 1L; /** * The reference instance of public.widget @@ -60,38 +65,39 @@ public Class getRecordType() { /** * The column public.widget.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.widget.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.widget.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR, this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR, this, ""); /** * The column public.widget.widget_type. */ - public final TableField WIDGET_TYPE = createField(DSL.name("widget_type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false), this, ""); + public final TableField WIDGET_TYPE = createField(DSL.name("widget_type"), SQLDataType.VARCHAR.nullable(false), this, ""); /** * The column public.widget.items_count. */ - public final TableField ITEMS_COUNT = createField(DSL.name("items_count"), org.jooq.impl.SQLDataType.SMALLINT, this, ""); + public final TableField ITEMS_COUNT = createField(DSL.name("items_count"), SQLDataType.SMALLINT, this, ""); /** * The column public.widget.widget_options. */ - public final TableField WIDGET_OPTIONS = createField(DSL.name("widget_options"), org.jooq.impl.SQLDataType.JSONB, this, ""); + public final TableField WIDGET_OPTIONS = createField(DSL.name("widget_options"), SQLDataType.JSONB, this, ""); - /** - * Create a public.widget table reference - */ - public JWidget() { - this(DSL.name("widget"), null); + private JWidget(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JWidget(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -108,26 +114,49 @@ public JWidget(Name alias) { this(alias, WIDGET); } - private JWidget(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.widget table reference + */ + public JWidget() { + this(DSL.name("widget"), null); } - private JWidget(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JWidget(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, WIDGET); } - public JWidget(Table child, ForeignKey key) { - super(child, key, WIDGET); + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JWidgetPath extends JWidget implements Path { + + private static final long serialVersionUID = 1L; + public JWidgetPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JWidgetPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JWidgetPath as(String alias) { + return new JWidgetPath(DSL.name(alias), this); + } + + @Override + public JWidgetPath as(Name alias) { + return new JWidgetPath(alias, this); + } + + @Override + public JWidgetPath as(Table alias) { + return new JWidgetPath(alias.getQualifiedName(), this); + } } @Override public Schema getSchema() { - return JPublic.PUBLIC; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.WIDGET_PKEY); + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -136,17 +165,75 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.WIDGET_PKEY); + public List> getReferences() { + return Arrays.asList(Keys.WIDGET__WIDGET_ID_FK); } - @Override - public List> getReferences() { - return Arrays.>asList(Keys.WIDGET__WIDGET_ID_FK); + private transient JOwnedEntityPath _ownedEntity; + + /** + * Get the implicit join path to the public.owned_entity table. + */ + public JOwnedEntityPath ownedEntity() { + if (_ownedEntity == null) + _ownedEntity = new JOwnedEntityPath(this, Keys.WIDGET__WIDGET_ID_FK, null); + + return _ownedEntity; } - public JOwnedEntity ownedEntity() { - return new JOwnedEntity(this, Keys.WIDGET__WIDGET_ID_FK); + private transient JContentFieldPath _contentField; + + /** + * Get the implicit to-many join path to the + * public.content_field table + */ + public JContentFieldPath contentField() { + if (_contentField == null) + _contentField = new JContentFieldPath(this, null, Keys.CONTENT_FIELD__CONTENT_FIELD_ID_FKEY.getInverseKey()); + + return _contentField; + } + + private transient JDashboardWidgetPath _dashboardWidget; + + /** + * Get the implicit to-many join path to the + * public.dashboard_widget table + */ + public JDashboardWidgetPath dashboardWidget() { + if (_dashboardWidget == null) + _dashboardWidget = new JDashboardWidgetPath(this, null, Keys.DASHBOARD_WIDGET__DASHBOARD_WIDGET_WIDGET_ID_FKEY.getInverseKey()); + + return _dashboardWidget; + } + + private transient JWidgetFilterPath _widgetFilter; + + /** + * Get the implicit to-many join path to the + * public.widget_filter table + */ + public JWidgetFilterPath widgetFilter() { + if (_widgetFilter == null) + _widgetFilter = new JWidgetFilterPath(this, null, Keys.WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY.getInverseKey()); + + return _widgetFilter; + } + + /** + * Get the implicit many-to-many join path to the + * public.dashboard table + */ + public JDashboardPath dashboard() { + return dashboardWidget().dashboard(); + } + + /** + * Get the implicit many-to-many join path to the public.filter + * table + */ + public JFilterPath filter() { + return widgetFilter().filter(); } @Override @@ -159,6 +246,11 @@ public JWidget as(Name alias) { return new JWidget(alias, this); } + @Override + public JWidget as(Table alias) { + return new JWidget(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -175,12 +267,95 @@ public JWidget rename(Name name) { return new JWidget(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JWidget rename(Table name) { + return new JWidget(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidget where(Condition condition) { + return new JWidget(getQualifiedName(), aliased() ? this : null, null, condition); + } + /** + * Create an inline derived table from this table + */ + @Override + public JWidget where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidget where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidget where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidget where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidget where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidget where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidget where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidget whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public JWidget whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidgetFilter.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidgetFilter.java index 4efca3481..7d47b0543 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidgetFilter.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/JWidgetFilter.java @@ -4,44 +4,45 @@ package com.epam.ta.reportportal.jooq.tables; -import com.epam.ta.reportportal.jooq.Indexes; import com.epam.ta.reportportal.jooq.JPublic; import com.epam.ta.reportportal.jooq.Keys; +import com.epam.ta.reportportal.jooq.tables.JFilter.JFilterPath; +import com.epam.ta.reportportal.jooq.tables.JWidget.JWidgetPath; import com.epam.ta.reportportal.jooq.tables.records.JWidgetFilterRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; -import javax.annotation.processing.Generated; - +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class JWidgetFilter extends TableImpl { - private static final long serialVersionUID = 456969536; + private static final long serialVersionUID = 1L; /** * The reference instance of public.widget_filter @@ -59,18 +60,19 @@ public Class getRecordType() { /** * The column public.widget_filter.widget_id. */ - public final TableField WIDGET_ID = createField(DSL.name("widget_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField WIDGET_ID = createField(DSL.name("widget_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column public.widget_filter.filter_id. */ - public final TableField FILTER_ID = createField(DSL.name("filter_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField FILTER_ID = createField(DSL.name("filter_id"), SQLDataType.BIGINT.nullable(false), this, ""); - /** - * Create a public.widget_filter table reference - */ - public JWidgetFilter() { - this(DSL.name("widget_filter"), null); + private JWidgetFilter(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private JWidgetFilter(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -87,26 +89,49 @@ public JWidgetFilter(Name alias) { this(alias, WIDGET_FILTER); } - private JWidgetFilter(Name alias, Table aliased) { - this(alias, aliased, null); + /** + * Create a public.widget_filter table reference + */ + public JWidgetFilter() { + this(DSL.name("widget_filter"), null); } - private JWidgetFilter(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + public JWidgetFilter(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, WIDGET_FILTER); } - public JWidgetFilter(Table child, ForeignKey key) { - super(child, key, WIDGET_FILTER); - } + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class JWidgetFilterPath extends JWidgetFilter implements Path { - @Override - public Schema getSchema() { - return JPublic.PUBLIC; + private static final long serialVersionUID = 1L; + public JWidgetFilterPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private JWidgetFilterPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public JWidgetFilterPath as(String alias) { + return new JWidgetFilterPath(DSL.name(alias), this); + } + + @Override + public JWidgetFilterPath as(Name alias) { + return new JWidgetFilterPath(alias, this); + } + + @Override + public JWidgetFilterPath as(Table alias) { + return new JWidgetFilterPath(alias.getQualifiedName(), this); + } } @Override - public List getIndexes() { - return Arrays.asList(Indexes.WIDGET_FILTER_PK); + public Schema getSchema() { + return aliased() ? null : JPublic.PUBLIC; } @Override @@ -114,22 +139,33 @@ public UniqueKey getPrimaryKey() { return Keys.WIDGET_FILTER_PK; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WIDGET_FILTER_PK); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY, Keys.WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY); + return Arrays.asList(Keys.WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY, Keys.WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY); } - public JWidget widget() { - return new JWidget(this, Keys.WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY); + private transient JFilterPath _filter; + + /** + * Get the implicit join path to the public.filter table. + */ + public JFilterPath filter() { + if (_filter == null) + _filter = new JFilterPath(this, Keys.WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY, null); + + return _filter; } - public JFilter filter() { - return new JFilter(this, Keys.WIDGET_FILTER__WIDGET_FILTER_FILTER_ID_FKEY); + private transient JWidgetPath _widget; + + /** + * Get the implicit join path to the public.widget table. + */ + public JWidgetPath widget() { + if (_widget == null) + _widget = new JWidgetPath(this, Keys.WIDGET_FILTER__WIDGET_FILTER_WIDGET_ID_FKEY, null); + + return _widget; } @Override @@ -142,6 +178,11 @@ public JWidgetFilter as(Name alias) { return new JWidgetFilter(alias, this); } + @Override + public JWidgetFilter as(Table alias) { + return new JWidgetFilter(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -158,12 +199,95 @@ public JWidgetFilter rename(Name name) { return new JWidgetFilter(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- + /** + * Rename this table + */ + @Override + public JWidgetFilter rename(Table name) { + return new JWidgetFilter(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidgetFilter where(Condition condition) { + return new JWidgetFilter(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidgetFilter where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidgetFilter where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidgetFilter where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidgetFilter where(SQL condition) { + return where(DSL.condition(condition)); + } + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidgetFilter where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidgetFilter where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public JWidgetFilter where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public JWidgetFilter whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public JWidgetFilter whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JActivityRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JActivityRecord.java index 77787ca08..1e9b73913 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JActivityRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JActivityRecord.java @@ -8,30 +8,18 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record13; -import org.jooq.Row13; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JActivityRecord extends UpdatableRecordImpl implements Record13 { - - private static final long serialVersionUID = -1736824153; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JActivityRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.activity.id. @@ -224,311 +212,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record13 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row13 fieldsRow() { - return (Row13) super.fieldsRow(); - } - - @Override - public Row13 valuesRow() { - return (Row13) super.valuesRow(); - } - - @Override - public Field field1() { - return JActivity.ACTIVITY.ID; - } - - @Override - public Field field2() { - return JActivity.ACTIVITY.CREATED_AT; - } - - @Override - public Field field3() { - return JActivity.ACTIVITY.ACTION; - } - - @Override - public Field field4() { - return JActivity.ACTIVITY.EVENT_NAME; - } - - @Override - public Field field5() { - return JActivity.ACTIVITY.PRIORITY; - } - - @Override - public Field field6() { - return JActivity.ACTIVITY.OBJECT_ID; - } - - @Override - public Field field7() { - return JActivity.ACTIVITY.OBJECT_NAME; - } - - @Override - public Field field8() { - return JActivity.ACTIVITY.OBJECT_TYPE; - } - - @Override - public Field field9() { - return JActivity.ACTIVITY.PROJECT_ID; - } - - @Override - public Field field10() { - return JActivity.ACTIVITY.DETAILS; - } - - @Override - public Field field11() { - return JActivity.ACTIVITY.SUBJECT_ID; - } - - @Override - public Field field12() { - return JActivity.ACTIVITY.SUBJECT_NAME; - } - - @Override - public Field field13() { - return JActivity.ACTIVITY.SUBJECT_TYPE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Instant component2() { - return getCreatedAt(); - } - - @Override - public String component3() { - return getAction(); - } - - @Override - public String component4() { - return getEventName(); - } - - @Override - public String component5() { - return getPriority(); - } - - @Override - public Long component6() { - return getObjectId(); - } - - @Override - public String component7() { - return getObjectName(); - } - - @Override - public String component8() { - return getObjectType(); - } - - @Override - public Long component9() { - return getProjectId(); - } - - @Override - public JSONB component10() { - return getDetails(); - } - - @Override - public Long component11() { - return getSubjectId(); - } - - @Override - public String component12() { - return getSubjectName(); - } - - @Override - public String component13() { - return getSubjectType(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Instant value2() { - return getCreatedAt(); - } - - @Override - public String value3() { - return getAction(); - } - - @Override - public String value4() { - return getEventName(); - } - - @Override - public String value5() { - return getPriority(); - } - - @Override - public Long value6() { - return getObjectId(); - } - - @Override - public String value7() { - return getObjectName(); - } - - @Override - public String value8() { - return getObjectType(); - } - - @Override - public Long value9() { - return getProjectId(); - } - - @Override - public JSONB value10() { - return getDetails(); - } - - @Override - public Long value11() { - return getSubjectId(); - } - - @Override - public String value12() { - return getSubjectName(); - } - - @Override - public String value13() { - return getSubjectType(); - } - - @Override - public JActivityRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JActivityRecord value2(Instant value) { - setCreatedAt(value); - return this; - } - - @Override - public JActivityRecord value3(String value) { - setAction(value); - return this; - } - - @Override - public JActivityRecord value4(String value) { - setEventName(value); - return this; - } - - @Override - public JActivityRecord value5(String value) { - setPriority(value); - return this; - } - - @Override - public JActivityRecord value6(Long value) { - setObjectId(value); - return this; - } - - @Override - public JActivityRecord value7(String value) { - setObjectName(value); - return this; - } - - @Override - public JActivityRecord value8(String value) { - setObjectType(value); - return this; - } - - @Override - public JActivityRecord value9(Long value) { - setProjectId(value); - return this; - } - - @Override - public JActivityRecord value10(JSONB value) { - setDetails(value); - return this; - } - - @Override - public JActivityRecord value11(Long value) { - setSubjectId(value); - return this; - } - - @Override - public JActivityRecord value12(String value) { - setSubjectName(value); - return this; - } - - @Override - public JActivityRecord value13(String value) { - setSubjectType(value); - return this; - } - - @Override - public JActivityRecord values(Long value1, Instant value2, String value3, String value4, String value5, Long value6, String value7, String value8, Long value9, JSONB value10, Long value11, String value12, String value13) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -546,18 +229,19 @@ public JActivityRecord() { public JActivityRecord(Long id, Instant createdAt, String action, String eventName, String priority, Long objectId, String objectName, String objectType, Long projectId, JSONB details, Long subjectId, String subjectName, String subjectType) { super(JActivity.ACTIVITY); - set(0, id); - set(1, createdAt); - set(2, action); - set(3, eventName); - set(4, priority); - set(5, objectId); - set(6, objectName); - set(7, objectType); - set(8, projectId); - set(9, details); - set(10, subjectId); - set(11, subjectName); - set(12, subjectType); + setId(id); + setCreatedAt(createdAt); + setAction(action); + setEventName(eventName); + setPriority(priority); + setObjectId(objectId); + setObjectName(objectName); + setObjectType(objectType); + setProjectId(projectId); + setDetails(details); + setSubjectId(subjectId); + setSubjectName(subjectName); + setSubjectType(subjectType); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAnalyticsDataRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAnalyticsDataRecord.java index 2e828ffcb..24212741d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAnalyticsDataRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAnalyticsDataRecord.java @@ -8,30 +8,18 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JAnalyticsDataRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = 924865012; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JAnalyticsDataRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.analytics_data.id. @@ -98,113 +86,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JAnalyticsData.ANALYTICS_DATA.ID; - } - - @Override - public Field field2() { - return JAnalyticsData.ANALYTICS_DATA.TYPE; - } - - @Override - public Field field3() { - return JAnalyticsData.ANALYTICS_DATA.CREATED_AT; - } - - @Override - public Field field4() { - return JAnalyticsData.ANALYTICS_DATA.METADATA; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getType(); - } - - @Override - public Instant component3() { - return getCreatedAt(); - } - - @Override - public JSONB component4() { - return getMetadata(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getType(); - } - - @Override - public Instant value3() { - return getCreatedAt(); - } - - @Override - public JSONB value4() { - return getMetadata(); - } - - @Override - public JAnalyticsDataRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JAnalyticsDataRecord value2(String value) { - setType(value); - return this; - } - - @Override - public JAnalyticsDataRecord value3(Instant value) { - setCreatedAt(value); - return this; - } - - @Override - public JAnalyticsDataRecord value4(JSONB value) { - setMetadata(value); - return this; - } - - @Override - public JAnalyticsDataRecord values(Long value1, String value2, Instant value3, JSONB value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -222,9 +103,10 @@ public JAnalyticsDataRecord() { public JAnalyticsDataRecord(Long id, String type, Instant createdAt, JSONB metadata) { super(JAnalyticsData.ANALYTICS_DATA); - set(0, id); - set(1, type); - set(2, createdAt); - set(3, metadata); + setId(id); + setType(type); + setCreatedAt(createdAt); + setMetadata(metadata); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JApiKeysRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JApiKeysRecord.java index 8351ab9b8..308f67b07 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JApiKeysRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JApiKeysRecord.java @@ -6,32 +6,20 @@ import com.epam.ta.reportportal.jooq.tables.JApiKeys; -import java.sql.Date; import java.time.Instant; +import java.time.LocalDate; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JApiKeysRecord extends UpdatableRecordImpl implements Record6 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JApiKeysRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 1506027464; + private static final long serialVersionUID = 1L; /** * Setter for public.api_keys.id. @@ -106,15 +94,15 @@ public Long getUserId() { /** * Setter for public.api_keys.last_used_at. */ - public void setLastUsedAt(Date value) { + public void setLastUsedAt(LocalDate value) { set(5, value); } /** * Getter for public.api_keys.last_used_at. */ - public Date getLastUsedAt() { - return (Date) get(5); + public LocalDate getLastUsedAt() { + return (LocalDate) get(5); } // ------------------------------------------------------------------------- @@ -126,157 +114,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return JApiKeys.API_KEYS.ID; - } - - @Override - public Field field2() { - return JApiKeys.API_KEYS.NAME; - } - - @Override - public Field field3() { - return JApiKeys.API_KEYS.HASH; - } - - @Override - public Field field4() { - return JApiKeys.API_KEYS.CREATED_AT; - } - - @Override - public Field field5() { - return JApiKeys.API_KEYS.USER_ID; - } - - @Override - public Field field6() { - return JApiKeys.API_KEYS.LAST_USED_AT; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getHash(); - } - - @Override - public Instant component4() { - return getCreatedAt(); - } - - @Override - public Long component5() { - return getUserId(); - } - - @Override - public Date component6() { - return getLastUsedAt(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getHash(); - } - - @Override - public Instant value4() { - return getCreatedAt(); - } - - @Override - public Long value5() { - return getUserId(); - } - - @Override - public Date value6() { - return getLastUsedAt(); - } - - @Override - public JApiKeysRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JApiKeysRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JApiKeysRecord value3(String value) { - setHash(value); - return this; - } - - @Override - public JApiKeysRecord value4(Instant value) { - setCreatedAt(value); - return this; - } - - @Override - public JApiKeysRecord value5(Long value) { - setUserId(value); - return this; - } - - @Override - public JApiKeysRecord value6(Date value) { - setLastUsedAt(value); - return this; - } - - @Override - public JApiKeysRecord values(Long value1, String value2, String value3, Instant value4, Long value5, Date value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -291,14 +128,15 @@ public JApiKeysRecord() { /** * Create a detached, initialised JApiKeysRecord */ - public JApiKeysRecord(Long id, String name, String hash, Instant createdAt, Long userId, Date lastUsedAt) { + public JApiKeysRecord(Long id, String name, String hash, Instant createdAt, Long userId, LocalDate lastUsedAt) { super(JApiKeys.API_KEYS); - set(0, id); - set(1, name); - set(2, hash); - set(3, createdAt); - set(4, userId); - set(5, lastUsedAt); + setId(id); + setName(name); + setHash(hash); + setCreatedAt(createdAt); + setUserId(userId); + setLastUsedAt(lastUsedAt); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentDeletionRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentDeletionRecord.java index e2c7b4c38..15ca47c49 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentDeletionRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentDeletionRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JAttachmentDeletionRecord extends UpdatableRecordImpl implements Record5 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JAttachmentDeletionRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 1575536078; + private static final long serialVersionUID = 1L; /** * Setter for public.attachment_deletion.id. @@ -75,14 +63,16 @@ public String getThumbnailId() { } /** - * Setter for public.attachment_deletion.creation_attachment_date. + * Setter for + * public.attachment_deletion.creation_attachment_date. */ public void setCreationAttachmentDate(Instant value) { set(3, value); } /** - * Getter for public.attachment_deletion.creation_attachment_date. + * Getter for + * public.attachment_deletion.creation_attachment_date. */ public Instant getCreationAttachmentDate() { return (Instant) get(3); @@ -111,135 +101,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return JAttachmentDeletion.ATTACHMENT_DELETION.ID; - } - - @Override - public Field field2() { - return JAttachmentDeletion.ATTACHMENT_DELETION.FILE_ID; - } - - @Override - public Field field3() { - return JAttachmentDeletion.ATTACHMENT_DELETION.THUMBNAIL_ID; - } - - @Override - public Field field4() { - return JAttachmentDeletion.ATTACHMENT_DELETION.CREATION_ATTACHMENT_DATE; - } - - @Override - public Field field5() { - return JAttachmentDeletion.ATTACHMENT_DELETION.DELETION_DATE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getFileId(); - } - - @Override - public String component3() { - return getThumbnailId(); - } - - @Override - public Instant component4() { - return getCreationAttachmentDate(); - } - - @Override - public Instant component5() { - return getDeletionDate(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getFileId(); - } - - @Override - public String value3() { - return getThumbnailId(); - } - - @Override - public Instant value4() { - return getCreationAttachmentDate(); - } - - @Override - public Instant value5() { - return getDeletionDate(); - } - - @Override - public JAttachmentDeletionRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JAttachmentDeletionRecord value2(String value) { - setFileId(value); - return this; - } - - @Override - public JAttachmentDeletionRecord value3(String value) { - setThumbnailId(value); - return this; - } - - @Override - public JAttachmentDeletionRecord value4(Instant value) { - setCreationAttachmentDate(value); - return this; - } - - @Override - public JAttachmentDeletionRecord value5(Instant value) { - setDeletionDate(value); - return this; - } - - @Override - public JAttachmentDeletionRecord values(Long value1, String value2, String value3, Instant value4, Instant value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -257,10 +118,11 @@ public JAttachmentDeletionRecord() { public JAttachmentDeletionRecord(Long id, String fileId, String thumbnailId, Instant creationAttachmentDate, Instant deletionDate) { super(JAttachmentDeletion.ATTACHMENT_DELETION); - set(0, id); - set(1, fileId); - set(2, thumbnailId); - set(3, creationAttachmentDate); - set(4, deletionDate); + setId(id); + setFileId(fileId); + setThumbnailId(thumbnailId); + setCreationAttachmentDate(creationAttachmentDate); + setDeletionDate(deletionDate); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentRecord.java index d21c96093..b538a9e7a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttachmentRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record10; -import org.jooq.Row10; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JAttachmentRecord extends UpdatableRecordImpl implements Record10 { - - private static final long serialVersionUID = 2146219288; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JAttachmentRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.attachment.id. @@ -181,245 +169,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record10 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row10 fieldsRow() { - return (Row10) super.fieldsRow(); - } - - @Override - public Row10 valuesRow() { - return (Row10) super.valuesRow(); - } - - @Override - public Field field1() { - return JAttachment.ATTACHMENT.ID; - } - - @Override - public Field field2() { - return JAttachment.ATTACHMENT.FILE_ID; - } - - @Override - public Field field3() { - return JAttachment.ATTACHMENT.THUMBNAIL_ID; - } - - @Override - public Field field4() { - return JAttachment.ATTACHMENT.CONTENT_TYPE; - } - - @Override - public Field field5() { - return JAttachment.ATTACHMENT.PROJECT_ID; - } - - @Override - public Field field6() { - return JAttachment.ATTACHMENT.LAUNCH_ID; - } - - @Override - public Field field7() { - return JAttachment.ATTACHMENT.ITEM_ID; - } - - @Override - public Field field8() { - return JAttachment.ATTACHMENT.FILE_SIZE; - } - - @Override - public Field field9() { - return JAttachment.ATTACHMENT.CREATION_DATE; - } - - @Override - public Field field10() { - return JAttachment.ATTACHMENT.FILE_NAME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getFileId(); - } - - @Override - public String component3() { - return getThumbnailId(); - } - - @Override - public String component4() { - return getContentType(); - } - - @Override - public Long component5() { - return getProjectId(); - } - - @Override - public Long component6() { - return getLaunchId(); - } - - @Override - public Long component7() { - return getItemId(); - } - - @Override - public Long component8() { - return getFileSize(); - } - - @Override - public Instant component9() { - return getCreationDate(); - } - - @Override - public String component10() { - return getFileName(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getFileId(); - } - - @Override - public String value3() { - return getThumbnailId(); - } - - @Override - public String value4() { - return getContentType(); - } - - @Override - public Long value5() { - return getProjectId(); - } - - @Override - public Long value6() { - return getLaunchId(); - } - - @Override - public Long value7() { - return getItemId(); - } - - @Override - public Long value8() { - return getFileSize(); - } - - @Override - public Instant value9() { - return getCreationDate(); - } - - @Override - public String value10() { - return getFileName(); - } - - @Override - public JAttachmentRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JAttachmentRecord value2(String value) { - setFileId(value); - return this; - } - - @Override - public JAttachmentRecord value3(String value) { - setThumbnailId(value); - return this; - } - - @Override - public JAttachmentRecord value4(String value) { - setContentType(value); - return this; - } - - @Override - public JAttachmentRecord value5(Long value) { - setProjectId(value); - return this; - } - - @Override - public JAttachmentRecord value6(Long value) { - setLaunchId(value); - return this; - } - - @Override - public JAttachmentRecord value7(Long value) { - setItemId(value); - return this; - } - - @Override - public JAttachmentRecord value8(Long value) { - setFileSize(value); - return this; - } - - @Override - public JAttachmentRecord value9(Instant value) { - setCreationDate(value); - return this; - } - - @Override - public JAttachmentRecord value10(String value) { - setFileName(value); - return this; - } - - @Override - public JAttachmentRecord values(Long value1, String value2, String value3, String value4, Long value5, Long value6, Long value7, Long value8, Instant value9, String value10) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -437,15 +186,16 @@ public JAttachmentRecord() { public JAttachmentRecord(Long id, String fileId, String thumbnailId, String contentType, Long projectId, Long launchId, Long itemId, Long fileSize, Instant creationDate, String fileName) { super(JAttachment.ATTACHMENT); - set(0, id); - set(1, fileId); - set(2, thumbnailId); - set(3, contentType); - set(4, projectId); - set(5, launchId); - set(6, itemId); - set(7, fileSize); - set(8, creationDate); - set(9, fileName); + setId(id); + setFileId(fileId); + setThumbnailId(thumbnailId); + setContentType(contentType); + setProjectId(projectId); + setLaunchId(launchId); + setItemId(itemId); + setFileSize(fileSize); + setCreationDate(creationDate); + setFileName(fileName); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttributeRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttributeRecord.java index e89015d8b..0f2eba888 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttributeRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JAttributeRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JAttribute; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JAttributeRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = -421000452; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JAttributeRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.attribute.id. @@ -67,69 +55,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JAttribute.ATTRIBUTE.ID; - } - - @Override - public Field field2() { - return JAttribute.ATTRIBUTE.NAME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public JAttributeRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JAttributeRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JAttributeRecord values(Long value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -147,7 +72,8 @@ public JAttributeRecord() { public JAttributeRecord(Long id, String name) { super(JAttribute.ATTRIBUTE); - set(0, id); - set(1, name); + setId(id); + setName(name); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersRecord.java index e165b6b84..d61bad9f4 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JClusters; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JClustersRecord extends UpdatableRecordImpl implements Record5 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JClustersRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -1880325859; + private static final long serialVersionUID = 1L; /** * Setter for public.clusters.id. @@ -109,135 +97,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return JClusters.CLUSTERS.ID; - } - - @Override - public Field field2() { - return JClusters.CLUSTERS.INDEX_ID; - } - - @Override - public Field field3() { - return JClusters.CLUSTERS.PROJECT_ID; - } - - @Override - public Field field4() { - return JClusters.CLUSTERS.LAUNCH_ID; - } - - @Override - public Field field5() { - return JClusters.CLUSTERS.MESSAGE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getIndexId(); - } - - @Override - public Long component3() { - return getProjectId(); - } - - @Override - public Long component4() { - return getLaunchId(); - } - - @Override - public String component5() { - return getMessage(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getIndexId(); - } - - @Override - public Long value3() { - return getProjectId(); - } - - @Override - public Long value4() { - return getLaunchId(); - } - - @Override - public String value5() { - return getMessage(); - } - - @Override - public JClustersRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JClustersRecord value2(Long value) { - setIndexId(value); - return this; - } - - @Override - public JClustersRecord value3(Long value) { - setProjectId(value); - return this; - } - - @Override - public JClustersRecord value4(Long value) { - setLaunchId(value); - return this; - } - - @Override - public JClustersRecord value5(String value) { - setMessage(value); - return this; - } - - @Override - public JClustersRecord values(Long value1, Long value2, Long value3, Long value4, String value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -255,10 +114,11 @@ public JClustersRecord() { public JClustersRecord(Long id, Long indexId, Long projectId, Long launchId, String message) { super(JClusters.CLUSTERS); - set(0, id); - set(1, indexId); - set(2, projectId); - set(3, launchId); - set(4, message); + setId(id); + setIndexId(indexId); + setProjectId(projectId); + setLaunchId(launchId); + setMessage(message); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersTestItemRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersTestItemRecord.java index c020b3db7..9d9f51901 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersTestItemRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersTestItemRecord.java @@ -6,28 +6,16 @@ import com.epam.ta.reportportal.jooq.tables.JClustersTestItem; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JClustersTestItemRecord extends TableRecordImpl implements Record2 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JClustersTestItemRecord extends TableRecordImpl { - private static final long serialVersionUID = -1142553978; + private static final long serialVersionUID = 1L; /** * Setter for public.clusters_test_item.cluster_id. @@ -57,69 +45,6 @@ public Long getItemId() { return (Long) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JClustersTestItem.CLUSTERS_TEST_ITEM.CLUSTER_ID; - } - - @Override - public Field field2() { - return JClustersTestItem.CLUSTERS_TEST_ITEM.ITEM_ID; - } - - @Override - public Long component1() { - return getClusterId(); - } - - @Override - public Long component2() { - return getItemId(); - } - - @Override - public Long value1() { - return getClusterId(); - } - - @Override - public Long value2() { - return getItemId(); - } - - @Override - public JClustersTestItemRecord value1(Long value) { - setClusterId(value); - return this; - } - - @Override - public JClustersTestItemRecord value2(Long value) { - setItemId(value); - return this; - } - - @Override - public JClustersTestItemRecord values(Long value1, Long value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -137,7 +62,8 @@ public JClustersTestItemRecord() { public JClustersTestItemRecord(Long clusterId, Long itemId) { super(JClustersTestItem.CLUSTERS_TEST_ITEM); - set(0, clusterId); - set(1, itemId); + setClusterId(clusterId); + setItemId(itemId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JContentFieldRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JContentFieldRecord.java index c9e701c30..1702ee14a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JContentFieldRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JContentFieldRecord.java @@ -6,28 +6,16 @@ import com.epam.ta.reportportal.jooq.tables.JContentField; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JContentFieldRecord extends TableRecordImpl implements Record2 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JContentFieldRecord extends TableRecordImpl { - private static final long serialVersionUID = -1854921726; + private static final long serialVersionUID = 1L; /** * Setter for public.content_field.id. @@ -57,69 +45,6 @@ public String getField() { return (String) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JContentField.CONTENT_FIELD.ID; - } - - @Override - public Field field2() { - return JContentField.CONTENT_FIELD.FIELD; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getField(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getField(); - } - - @Override - public JContentFieldRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JContentFieldRecord value2(String value) { - setField(value); - return this; - } - - @Override - public JContentFieldRecord values(Long value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -137,7 +62,8 @@ public JContentFieldRecord() { public JContentFieldRecord(Long id, String field) { super(JContentField.CONTENT_FIELD); - set(0, id); - set(1, field); + setId(id); + setField(field); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardRecord.java index e3836fc27..fc19b2b9f 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JDashboardRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = -2135476637; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JDashboardRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.dashboard.id. @@ -97,113 +85,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JDashboard.DASHBOARD.ID; - } - - @Override - public Field field2() { - return JDashboard.DASHBOARD.NAME; - } - - @Override - public Field field3() { - return JDashboard.DASHBOARD.DESCRIPTION; - } - - @Override - public Field field4() { - return JDashboard.DASHBOARD.CREATION_DATE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getDescription(); - } - - @Override - public Instant component4() { - return getCreationDate(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getDescription(); - } - - @Override - public Instant value4() { - return getCreationDate(); - } - - @Override - public JDashboardRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JDashboardRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JDashboardRecord value3(String value) { - setDescription(value); - return this; - } - - @Override - public JDashboardRecord value4(Instant value) { - setCreationDate(value); - return this; - } - - @Override - public JDashboardRecord values(Long value1, String value2, String value3, Instant value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -221,9 +102,10 @@ public JDashboardRecord() { public JDashboardRecord(Long id, String name, String description, Instant creationDate) { super(JDashboard.DASHBOARD); - set(0, id); - set(1, name); - set(2, description); - set(3, creationDate); + setId(id); + setName(name); + setDescription(description); + setCreationDate(creationDate); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardWidgetRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardWidgetRecord.java index 68ed59d27..5c363a7e9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardWidgetRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JDashboardWidgetRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JDashboardWidget; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record10; import org.jooq.Record2; -import org.jooq.Row10; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JDashboardWidgetRecord extends UpdatableRecordImpl implements Record10 { - - private static final long serialVersionUID = -1831425663; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JDashboardWidgetRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.dashboard_widget.dashboard_id. @@ -179,245 +167,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record10 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row10 fieldsRow() { - return (Row10) super.fieldsRow(); - } - - @Override - public Row10 valuesRow() { - return (Row10) super.valuesRow(); - } - - @Override - public Field field1() { - return JDashboardWidget.DASHBOARD_WIDGET.DASHBOARD_ID; - } - - @Override - public Field field2() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_ID; - } - - @Override - public Field field3() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_NAME; - } - - @Override - public Field field4() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_OWNER; - } - - @Override - public Field field5() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_TYPE; - } - - @Override - public Field field6() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_WIDTH; - } - - @Override - public Field field7() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_HEIGHT; - } - - @Override - public Field field8() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_POSITION_X; - } - - @Override - public Field field9() { - return JDashboardWidget.DASHBOARD_WIDGET.WIDGET_POSITION_Y; - } - - @Override - public Field field10() { - return JDashboardWidget.DASHBOARD_WIDGET.IS_CREATED_ON; - } - - @Override - public Long component1() { - return getDashboardId(); - } - - @Override - public Long component2() { - return getWidgetId(); - } - - @Override - public String component3() { - return getWidgetName(); - } - - @Override - public String component4() { - return getWidgetOwner(); - } - - @Override - public String component5() { - return getWidgetType(); - } - - @Override - public Integer component6() { - return getWidgetWidth(); - } - - @Override - public Integer component7() { - return getWidgetHeight(); - } - - @Override - public Integer component8() { - return getWidgetPositionX(); - } - - @Override - public Integer component9() { - return getWidgetPositionY(); - } - - @Override - public Boolean component10() { - return getIsCreatedOn(); - } - - @Override - public Long value1() { - return getDashboardId(); - } - - @Override - public Long value2() { - return getWidgetId(); - } - - @Override - public String value3() { - return getWidgetName(); - } - - @Override - public String value4() { - return getWidgetOwner(); - } - - @Override - public String value5() { - return getWidgetType(); - } - - @Override - public Integer value6() { - return getWidgetWidth(); - } - - @Override - public Integer value7() { - return getWidgetHeight(); - } - - @Override - public Integer value8() { - return getWidgetPositionX(); - } - - @Override - public Integer value9() { - return getWidgetPositionY(); - } - - @Override - public Boolean value10() { - return getIsCreatedOn(); - } - - @Override - public JDashboardWidgetRecord value1(Long value) { - setDashboardId(value); - return this; - } - - @Override - public JDashboardWidgetRecord value2(Long value) { - setWidgetId(value); - return this; - } - - @Override - public JDashboardWidgetRecord value3(String value) { - setWidgetName(value); - return this; - } - - @Override - public JDashboardWidgetRecord value4(String value) { - setWidgetOwner(value); - return this; - } - - @Override - public JDashboardWidgetRecord value5(String value) { - setWidgetType(value); - return this; - } - - @Override - public JDashboardWidgetRecord value6(Integer value) { - setWidgetWidth(value); - return this; - } - - @Override - public JDashboardWidgetRecord value7(Integer value) { - setWidgetHeight(value); - return this; - } - - @Override - public JDashboardWidgetRecord value8(Integer value) { - setWidgetPositionX(value); - return this; - } - - @Override - public JDashboardWidgetRecord value9(Integer value) { - setWidgetPositionY(value); - return this; - } - - @Override - public JDashboardWidgetRecord value10(Boolean value) { - setIsCreatedOn(value); - return this; - } - - @Override - public JDashboardWidgetRecord values(Long value1, Long value2, String value3, String value4, String value5, Integer value6, Integer value7, Integer value8, Integer value9, Boolean value10) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -435,15 +184,16 @@ public JDashboardWidgetRecord() { public JDashboardWidgetRecord(Long dashboardId, Long widgetId, String widgetName, String widgetOwner, String widgetType, Integer widgetWidth, Integer widgetHeight, Integer widgetPositionX, Integer widgetPositionY, Boolean isCreatedOn) { super(JDashboardWidget.DASHBOARD_WIDGET); - set(0, dashboardId); - set(1, widgetId); - set(2, widgetName); - set(3, widgetOwner); - set(4, widgetType); - set(5, widgetWidth); - set(6, widgetHeight); - set(7, widgetPositionX); - set(8, widgetPositionY); - set(9, isCreatedOn); + setDashboardId(dashboardId); + setWidgetId(widgetId); + setWidgetName(widgetName); + setWidgetOwner(widgetOwner); + setWidgetType(widgetType); + setWidgetWidth(widgetWidth); + setWidgetHeight(widgetHeight); + setWidgetPositionX(widgetPositionX); + setWidgetPositionY(widgetPositionY); + setIsCreatedOn(isCreatedOn); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterConditionRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterConditionRecord.java index 30d7abac7..4b993ffb3 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterConditionRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterConditionRecord.java @@ -7,29 +7,17 @@ import com.epam.ta.reportportal.jooq.enums.JFilterConditionEnum; import com.epam.ta.reportportal.jooq.tables.JFilterCondition; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JFilterConditionRecord extends UpdatableRecordImpl implements Record6 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JFilterConditionRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 1436060418; + private static final long serialVersionUID = 1L; /** * Setter for public.filter_condition.id. @@ -124,157 +112,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return JFilterCondition.FILTER_CONDITION.ID; - } - - @Override - public Field field2() { - return JFilterCondition.FILTER_CONDITION.FILTER_ID; - } - - @Override - public Field field3() { - return JFilterCondition.FILTER_CONDITION.CONDITION; - } - - @Override - public Field field4() { - return JFilterCondition.FILTER_CONDITION.VALUE; - } - - @Override - public Field field5() { - return JFilterCondition.FILTER_CONDITION.SEARCH_CRITERIA; - } - - @Override - public Field field6() { - return JFilterCondition.FILTER_CONDITION.NEGATIVE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getFilterId(); - } - - @Override - public JFilterConditionEnum component3() { - return getCondition(); - } - - @Override - public String component4() { - return getValue(); - } - - @Override - public String component5() { - return getSearchCriteria(); - } - - @Override - public Boolean component6() { - return getNegative(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getFilterId(); - } - - @Override - public JFilterConditionEnum value3() { - return getCondition(); - } - - @Override - public String value4() { - return getValue(); - } - - @Override - public String value5() { - return getSearchCriteria(); - } - - @Override - public Boolean value6() { - return getNegative(); - } - - @Override - public JFilterConditionRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JFilterConditionRecord value2(Long value) { - setFilterId(value); - return this; - } - - @Override - public JFilterConditionRecord value3(JFilterConditionEnum value) { - setCondition(value); - return this; - } - - @Override - public JFilterConditionRecord value4(String value) { - setValue(value); - return this; - } - - @Override - public JFilterConditionRecord value5(String value) { - setSearchCriteria(value); - return this; - } - - @Override - public JFilterConditionRecord value6(Boolean value) { - setNegative(value); - return this; - } - - @Override - public JFilterConditionRecord values(Long value1, Long value2, JFilterConditionEnum value3, String value4, String value5, Boolean value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -292,11 +129,12 @@ public JFilterConditionRecord() { public JFilterConditionRecord(Long id, Long filterId, JFilterConditionEnum condition, String value, String searchCriteria, Boolean negative) { super(JFilterCondition.FILTER_CONDITION); - set(0, id); - set(1, filterId); - set(2, condition); - set(3, value); - set(4, searchCriteria); - set(5, negative); + setId(id); + setFilterId(filterId); + setCondition(condition); + setValue(value); + setSearchCriteria(searchCriteria); + setNegative(negative); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterRecord.java index d3d5052f7..c4f153c54 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JFilter; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JFilterRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = -1042860928; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JFilterRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.filter.id. @@ -95,113 +83,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JFilter.FILTER.ID; - } - - @Override - public Field field2() { - return JFilter.FILTER.NAME; - } - - @Override - public Field field3() { - return JFilter.FILTER.TARGET; - } - - @Override - public Field field4() { - return JFilter.FILTER.DESCRIPTION; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getTarget(); - } - - @Override - public String component4() { - return getDescription(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getTarget(); - } - - @Override - public String value4() { - return getDescription(); - } - - @Override - public JFilterRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JFilterRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JFilterRecord value3(String value) { - setTarget(value); - return this; - } - - @Override - public JFilterRecord value4(String value) { - setDescription(value); - return this; - } - - @Override - public JFilterRecord values(Long value1, String value2, String value3, String value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -219,9 +100,10 @@ public JFilterRecord() { public JFilterRecord(Long id, String name, String target, String description) { super(JFilter.FILTER); - set(0, id); - set(1, name); - set(2, target); - set(3, description); + setId(id); + setName(name); + setTarget(target); + setDescription(description); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterSortRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterSortRecord.java index 362d482a7..a6a9ca668 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterSortRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JFilterSortRecord.java @@ -7,29 +7,17 @@ import com.epam.ta.reportportal.jooq.enums.JSortDirectionEnum; import com.epam.ta.reportportal.jooq.tables.JFilterSort; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JFilterSortRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = -758871639; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JFilterSortRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.filter_sort.id. @@ -96,113 +84,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JFilterSort.FILTER_SORT.ID; - } - - @Override - public Field field2() { - return JFilterSort.FILTER_SORT.FILTER_ID; - } - - @Override - public Field field3() { - return JFilterSort.FILTER_SORT.FIELD; - } - - @Override - public Field field4() { - return JFilterSort.FILTER_SORT.DIRECTION; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getFilterId(); - } - - @Override - public String component3() { - return getField(); - } - - @Override - public JSortDirectionEnum component4() { - return getDirection(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getFilterId(); - } - - @Override - public String value3() { - return getField(); - } - - @Override - public JSortDirectionEnum value4() { - return getDirection(); - } - - @Override - public JFilterSortRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JFilterSortRecord value2(Long value) { - setFilterId(value); - return this; - } - - @Override - public JFilterSortRecord value3(String value) { - setField(value); - return this; - } - - @Override - public JFilterSortRecord value4(JSortDirectionEnum value) { - setDirection(value); - return this; - } - - @Override - public JFilterSortRecord values(Long value1, Long value2, String value3, JSortDirectionEnum value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -220,9 +101,10 @@ public JFilterSortRecord() { public JFilterSortRecord(Long id, Long filterId, String field, JSortDirectionEnum direction) { super(JFilterSort.FILTER_SORT); - set(0, id); - set(1, filterId); - set(2, field); - set(3, direction); + setId(id); + setFilterId(filterId); + setField(field); + setDirection(direction); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationRecord.java index db8a51436..735b6e8c9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationRecord.java @@ -8,30 +8,18 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record8; -import org.jooq.Row8; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIntegrationRecord extends UpdatableRecordImpl implements Record8 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIntegrationRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -1527652479; + private static final long serialVersionUID = 1L; /** * Setter for public.integration.id. @@ -154,201 +142,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record8 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); - } - - @Override - public Row8 valuesRow() { - return (Row8) super.valuesRow(); - } - - @Override - public Field field1() { - return JIntegration.INTEGRATION.ID; - } - - @Override - public Field field2() { - return JIntegration.INTEGRATION.NAME; - } - - @Override - public Field field3() { - return JIntegration.INTEGRATION.PROJECT_ID; - } - - @Override - public Field field4() { - return JIntegration.INTEGRATION.TYPE; - } - - @Override - public Field field5() { - return JIntegration.INTEGRATION.ENABLED; - } - - @Override - public Field field6() { - return JIntegration.INTEGRATION.PARAMS; - } - - @Override - public Field field7() { - return JIntegration.INTEGRATION.CREATOR; - } - - @Override - public Field field8() { - return JIntegration.INTEGRATION.CREATION_DATE; - } - - @Override - public Integer component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public Long component3() { - return getProjectId(); - } - - @Override - public Integer component4() { - return getType(); - } - - @Override - public Boolean component5() { - return getEnabled(); - } - - @Override - public JSONB component6() { - return getParams(); - } - - @Override - public String component7() { - return getCreator(); - } - - @Override - public Instant component8() { - return getCreationDate(); - } - - @Override - public Integer value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public Long value3() { - return getProjectId(); - } - - @Override - public Integer value4() { - return getType(); - } - - @Override - public Boolean value5() { - return getEnabled(); - } - - @Override - public JSONB value6() { - return getParams(); - } - - @Override - public String value7() { - return getCreator(); - } - - @Override - public Instant value8() { - return getCreationDate(); - } - - @Override - public JIntegrationRecord value1(Integer value) { - setId(value); - return this; - } - - @Override - public JIntegrationRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JIntegrationRecord value3(Long value) { - setProjectId(value); - return this; - } - - @Override - public JIntegrationRecord value4(Integer value) { - setType(value); - return this; - } - - @Override - public JIntegrationRecord value5(Boolean value) { - setEnabled(value); - return this; - } - - @Override - public JIntegrationRecord value6(JSONB value) { - setParams(value); - return this; - } - - @Override - public JIntegrationRecord value7(String value) { - setCreator(value); - return this; - } - - @Override - public JIntegrationRecord value8(Instant value) { - setCreationDate(value); - return this; - } - - @Override - public JIntegrationRecord values(Integer value1, String value2, Long value3, Integer value4, Boolean value5, JSONB value6, String value7, Instant value8) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -366,13 +159,14 @@ public JIntegrationRecord() { public JIntegrationRecord(Integer id, String name, Long projectId, Integer type, Boolean enabled, JSONB params, String creator, Instant creationDate) { super(JIntegration.INTEGRATION); - set(0, id); - set(1, name); - set(2, projectId); - set(3, type); - set(4, enabled); - set(5, params); - set(6, creator); - set(7, creationDate); + setId(id); + setName(name); + setProjectId(projectId); + setType(type); + setEnabled(enabled); + setParams(params); + setCreator(creator); + setCreationDate(creationDate); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationTypeRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationTypeRecord.java index 7df8b7e8a..054c7c227 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationTypeRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIntegrationTypeRecord.java @@ -10,30 +10,18 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record7; -import org.jooq.Row7; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIntegrationTypeRecord extends UpdatableRecordImpl implements Record7 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIntegrationTypeRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -1278319443; + private static final long serialVersionUID = 1L; /** * Setter for public.integration_type.id. @@ -142,179 +130,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record7 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); - } - - @Override - public Field field1() { - return JIntegrationType.INTEGRATION_TYPE.ID; - } - - @Override - public Field field2() { - return JIntegrationType.INTEGRATION_TYPE.NAME; - } - - @Override - public Field field3() { - return JIntegrationType.INTEGRATION_TYPE.AUTH_FLOW; - } - - @Override - public Field field4() { - return JIntegrationType.INTEGRATION_TYPE.CREATION_DATE; - } - - @Override - public Field field5() { - return JIntegrationType.INTEGRATION_TYPE.GROUP_TYPE; - } - - @Override - public Field field6() { - return JIntegrationType.INTEGRATION_TYPE.ENABLED; - } - - @Override - public Field field7() { - return JIntegrationType.INTEGRATION_TYPE.DETAILS; - } - - @Override - public Integer component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public JIntegrationAuthFlowEnum component3() { - return getAuthFlow(); - } - - @Override - public Instant component4() { - return getCreationDate(); - } - - @Override - public JIntegrationGroupEnum component5() { - return getGroupType(); - } - - @Override - public Boolean component6() { - return getEnabled(); - } - - @Override - public JSONB component7() { - return getDetails(); - } - - @Override - public Integer value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public JIntegrationAuthFlowEnum value3() { - return getAuthFlow(); - } - - @Override - public Instant value4() { - return getCreationDate(); - } - - @Override - public JIntegrationGroupEnum value5() { - return getGroupType(); - } - - @Override - public Boolean value6() { - return getEnabled(); - } - - @Override - public JSONB value7() { - return getDetails(); - } - - @Override - public JIntegrationTypeRecord value1(Integer value) { - setId(value); - return this; - } - - @Override - public JIntegrationTypeRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JIntegrationTypeRecord value3(JIntegrationAuthFlowEnum value) { - setAuthFlow(value); - return this; - } - - @Override - public JIntegrationTypeRecord value4(Instant value) { - setCreationDate(value); - return this; - } - - @Override - public JIntegrationTypeRecord value5(JIntegrationGroupEnum value) { - setGroupType(value); - return this; - } - - @Override - public JIntegrationTypeRecord value6(Boolean value) { - setEnabled(value); - return this; - } - - @Override - public JIntegrationTypeRecord value7(JSONB value) { - setDetails(value); - return this; - } - - @Override - public JIntegrationTypeRecord values(Integer value1, String value2, JIntegrationAuthFlowEnum value3, Instant value4, JIntegrationGroupEnum value5, Boolean value6, JSONB value7) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -332,12 +147,13 @@ public JIntegrationTypeRecord() { public JIntegrationTypeRecord(Integer id, String name, JIntegrationAuthFlowEnum authFlow, Instant creationDate, JIntegrationGroupEnum groupType, Boolean enabled, JSONB details) { super(JIntegrationType.INTEGRATION_TYPE); - set(0, id); - set(1, name); - set(2, authFlow); - set(3, creationDate); - set(4, groupType); - set(5, enabled); - set(6, details); + setId(id); + setName(name); + setAuthFlow(authFlow); + setCreationDate(creationDate); + setGroupType(groupType); + setEnabled(enabled); + setDetails(details); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueGroupRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueGroupRecord.java index 23af40700..9cddd4bdf 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueGroupRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueGroupRecord.java @@ -7,29 +7,17 @@ import com.epam.ta.reportportal.jooq.enums.JIssueGroupEnum; import com.epam.ta.reportportal.jooq.tables.JIssueGroup; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIssueGroupRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = 706892897; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIssueGroupRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.issue_group.issue_group_id. @@ -68,69 +56,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_ID; - } - - @Override - public Field field2() { - return JIssueGroup.ISSUE_GROUP.ISSUE_GROUP_; - } - - @Override - public Short component1() { - return getIssueGroupId(); - } - - @Override - public JIssueGroupEnum component2() { - return getIssueGroup(); - } - - @Override - public Short value1() { - return getIssueGroupId(); - } - - @Override - public JIssueGroupEnum value2() { - return getIssueGroup(); - } - - @Override - public JIssueGroupRecord value1(Short value) { - setIssueGroupId(value); - return this; - } - - @Override - public JIssueGroupRecord value2(JIssueGroupEnum value) { - setIssueGroup(value); - return this; - } - - @Override - public JIssueGroupRecord values(Short value1, JIssueGroupEnum value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -148,7 +73,8 @@ public JIssueGroupRecord() { public JIssueGroupRecord(Short issueGroupId, JIssueGroupEnum issueGroup) { super(JIssueGroup.ISSUE_GROUP); - set(0, issueGroupId); - set(1, issueGroup); + setIssueGroupId(issueGroupId); + setIssueGroup(issueGroup); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueRecord.java index eaab83c61..14e5bcc14 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JIssue; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIssueRecord extends UpdatableRecordImpl implements Record5 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIssueRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -1357499849; + private static final long serialVersionUID = 1L; /** * Setter for public.issue.issue_id. @@ -109,135 +97,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return JIssue.ISSUE.ISSUE_ID; - } - - @Override - public Field field2() { - return JIssue.ISSUE.ISSUE_TYPE; - } - - @Override - public Field field3() { - return JIssue.ISSUE.ISSUE_DESCRIPTION; - } - - @Override - public Field field4() { - return JIssue.ISSUE.AUTO_ANALYZED; - } - - @Override - public Field field5() { - return JIssue.ISSUE.IGNORE_ANALYZER; - } - - @Override - public Long component1() { - return getIssueId(); - } - - @Override - public Long component2() { - return getIssueType(); - } - - @Override - public String component3() { - return getIssueDescription(); - } - - @Override - public Boolean component4() { - return getAutoAnalyzed(); - } - - @Override - public Boolean component5() { - return getIgnoreAnalyzer(); - } - - @Override - public Long value1() { - return getIssueId(); - } - - @Override - public Long value2() { - return getIssueType(); - } - - @Override - public String value3() { - return getIssueDescription(); - } - - @Override - public Boolean value4() { - return getAutoAnalyzed(); - } - - @Override - public Boolean value5() { - return getIgnoreAnalyzer(); - } - - @Override - public JIssueRecord value1(Long value) { - setIssueId(value); - return this; - } - - @Override - public JIssueRecord value2(Long value) { - setIssueType(value); - return this; - } - - @Override - public JIssueRecord value3(String value) { - setIssueDescription(value); - return this; - } - - @Override - public JIssueRecord value4(Boolean value) { - setAutoAnalyzed(value); - return this; - } - - @Override - public JIssueRecord value5(Boolean value) { - setIgnoreAnalyzer(value); - return this; - } - - @Override - public JIssueRecord values(Long value1, Long value2, String value3, Boolean value4, Boolean value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -255,10 +114,11 @@ public JIssueRecord() { public JIssueRecord(Long issueId, Long issueType, String issueDescription, Boolean autoAnalyzed, Boolean ignoreAnalyzer) { super(JIssue.ISSUE); - set(0, issueId); - set(1, issueType); - set(2, issueDescription); - set(3, autoAnalyzed); - set(4, ignoreAnalyzer); + setIssueId(issueId); + setIssueType(issueType); + setIssueDescription(issueDescription); + setAutoAnalyzed(autoAnalyzed); + setIgnoreAnalyzer(ignoreAnalyzer); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTicketRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTicketRecord.java index 7f7b3719e..07754a099 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTicketRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTicketRecord.java @@ -6,28 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JIssueTicket; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIssueTicketRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = -755638091; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIssueTicketRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.issue_ticket.issue_id. @@ -66,69 +55,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JIssueTicket.ISSUE_TICKET.ISSUE_ID; - } - - @Override - public Field field2() { - return JIssueTicket.ISSUE_TICKET.TICKET_ID; - } - - @Override - public Long component1() { - return getIssueId(); - } - - @Override - public Long component2() { - return getTicketId(); - } - - @Override - public Long value1() { - return getIssueId(); - } - - @Override - public Long value2() { - return getTicketId(); - } - - @Override - public JIssueTicketRecord value1(Long value) { - setIssueId(value); - return this; - } - - @Override - public JIssueTicketRecord value2(Long value) { - setTicketId(value); - return this; - } - - @Override - public JIssueTicketRecord values(Long value1, Long value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -146,7 +72,8 @@ public JIssueTicketRecord() { public JIssueTicketRecord(Long issueId, Long ticketId) { super(JIssueTicket.ISSUE_TICKET); - set(0, issueId); - set(1, ticketId); + setIssueId(issueId); + setTicketId(ticketId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeProjectRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeProjectRecord.java index f9d621758..5c80de90d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeProjectRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeProjectRecord.java @@ -6,28 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JIssueTypeProject; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIssueTypeProjectRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = -272281122; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIssueTypeProjectRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.issue_type_project.project_id. @@ -66,69 +55,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JIssueTypeProject.ISSUE_TYPE_PROJECT.PROJECT_ID; - } - - @Override - public Field field2() { - return JIssueTypeProject.ISSUE_TYPE_PROJECT.ISSUE_TYPE_ID; - } - - @Override - public Long component1() { - return getProjectId(); - } - - @Override - public Long component2() { - return getIssueTypeId(); - } - - @Override - public Long value1() { - return getProjectId(); - } - - @Override - public Long value2() { - return getIssueTypeId(); - } - - @Override - public JIssueTypeProjectRecord value1(Long value) { - setProjectId(value); - return this; - } - - @Override - public JIssueTypeProjectRecord value2(Long value) { - setIssueTypeId(value); - return this; - } - - @Override - public JIssueTypeProjectRecord values(Long value1, Long value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -146,7 +72,8 @@ public JIssueTypeProjectRecord() { public JIssueTypeProjectRecord(Long projectId, Long issueTypeId) { super(JIssueTypeProject.ISSUE_TYPE_PROJECT); - set(0, projectId); - set(1, issueTypeId); + setProjectId(projectId); + setIssueTypeId(issueTypeId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeRecord.java index 6cb851de7..754ff82c7 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JIssueTypeRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JIssueType; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JIssueTypeRecord extends UpdatableRecordImpl implements Record6 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JIssueTypeRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -1954908516; + private static final long serialVersionUID = 1L; /** * Setter for public.issue_type.id. @@ -123,157 +111,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return JIssueType.ISSUE_TYPE.ID; - } - - @Override - public Field field2() { - return JIssueType.ISSUE_TYPE.ISSUE_GROUP_ID; - } - - @Override - public Field field3() { - return JIssueType.ISSUE_TYPE.LOCATOR; - } - - @Override - public Field field4() { - return JIssueType.ISSUE_TYPE.ISSUE_NAME; - } - - @Override - public Field field5() { - return JIssueType.ISSUE_TYPE.ABBREVIATION; - } - - @Override - public Field field6() { - return JIssueType.ISSUE_TYPE.HEX_COLOR; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Short component2() { - return getIssueGroupId(); - } - - @Override - public String component3() { - return getLocator(); - } - - @Override - public String component4() { - return getIssueName(); - } - - @Override - public String component5() { - return getAbbreviation(); - } - - @Override - public String component6() { - return getHexColor(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Short value2() { - return getIssueGroupId(); - } - - @Override - public String value3() { - return getLocator(); - } - - @Override - public String value4() { - return getIssueName(); - } - - @Override - public String value5() { - return getAbbreviation(); - } - - @Override - public String value6() { - return getHexColor(); - } - - @Override - public JIssueTypeRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JIssueTypeRecord value2(Short value) { - setIssueGroupId(value); - return this; - } - - @Override - public JIssueTypeRecord value3(String value) { - setLocator(value); - return this; - } - - @Override - public JIssueTypeRecord value4(String value) { - setIssueName(value); - return this; - } - - @Override - public JIssueTypeRecord value5(String value) { - setAbbreviation(value); - return this; - } - - @Override - public JIssueTypeRecord value6(String value) { - setHexColor(value); - return this; - } - - @Override - public JIssueTypeRecord values(Long value1, Short value2, String value3, String value4, String value5, String value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -291,11 +128,12 @@ public JIssueTypeRecord() { public JIssueTypeRecord(Long id, Short issueGroupId, String locator, String issueName, String abbreviation, String hexColor) { super(JIssueType.ISSUE_TYPE); - set(0, id); - set(1, issueGroupId); - set(2, locator); - set(3, issueName); - set(4, abbreviation); - set(5, hexColor); + setId(id); + setIssueGroupId(issueGroupId); + setLocator(locator); + setIssueName(issueName); + setAbbreviation(abbreviation); + setHexColor(hexColor); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JItemAttributeRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JItemAttributeRecord.java index 1c979a008..e37e9ea97 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JItemAttributeRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JItemAttributeRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JItemAttribute; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JItemAttributeRecord extends UpdatableRecordImpl implements Record6 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JItemAttributeRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 1975199970; + private static final long serialVersionUID = 1L; /** * Setter for public.item_attribute.id. @@ -123,157 +111,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return JItemAttribute.ITEM_ATTRIBUTE.ID; - } - - @Override - public Field field2() { - return JItemAttribute.ITEM_ATTRIBUTE.KEY; - } - - @Override - public Field field3() { - return JItemAttribute.ITEM_ATTRIBUTE.VALUE; - } - - @Override - public Field field4() { - return JItemAttribute.ITEM_ATTRIBUTE.ITEM_ID; - } - - @Override - public Field field5() { - return JItemAttribute.ITEM_ATTRIBUTE.LAUNCH_ID; - } - - @Override - public Field field6() { - return JItemAttribute.ITEM_ATTRIBUTE.SYSTEM; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getKey(); - } - - @Override - public String component3() { - return getValue(); - } - - @Override - public Long component4() { - return getItemId(); - } - - @Override - public Long component5() { - return getLaunchId(); - } - - @Override - public Boolean component6() { - return getSystem(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getKey(); - } - - @Override - public String value3() { - return getValue(); - } - - @Override - public Long value4() { - return getItemId(); - } - - @Override - public Long value5() { - return getLaunchId(); - } - - @Override - public Boolean value6() { - return getSystem(); - } - - @Override - public JItemAttributeRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JItemAttributeRecord value2(String value) { - setKey(value); - return this; - } - - @Override - public JItemAttributeRecord value3(String value) { - setValue(value); - return this; - } - - @Override - public JItemAttributeRecord value4(Long value) { - setItemId(value); - return this; - } - - @Override - public JItemAttributeRecord value5(Long value) { - setLaunchId(value); - return this; - } - - @Override - public JItemAttributeRecord value6(Boolean value) { - setSystem(value); - return this; - } - - @Override - public JItemAttributeRecord values(Long value1, String value2, String value3, Long value4, Long value5, Boolean value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -291,11 +128,12 @@ public JItemAttributeRecord() { public JItemAttributeRecord(Long id, String key, String value, Long itemId, Long launchId, Boolean system) { super(JItemAttribute.ITEM_ATTRIBUTE); - set(0, id); - set(1, key); - set(2, value); - set(3, itemId); - set(4, launchId); - set(5, system); + setId(id); + setKey(key); + setValue(value); + setItemId(itemId); + setLaunchId(launchId); + setSystem(system); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchAttributeRulesRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchAttributeRulesRecord.java index 5b7d4ae19..1788d030d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchAttributeRulesRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchAttributeRulesRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JLaunchAttributeRules; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JLaunchAttributeRulesRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = -95178244; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JLaunchAttributeRulesRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.launch_attribute_rules.id. @@ -95,113 +83,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.ID; - } - - @Override - public Field field2() { - return JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.SENDER_CASE_ID; - } - - @Override - public Field field3() { - return JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.KEY; - } - - @Override - public Field field4() { - return JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES.VALUE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getSenderCaseId(); - } - - @Override - public String component3() { - return getKey(); - } - - @Override - public String component4() { - return getValue(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getSenderCaseId(); - } - - @Override - public String value3() { - return getKey(); - } - - @Override - public String value4() { - return getValue(); - } - - @Override - public JLaunchAttributeRulesRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JLaunchAttributeRulesRecord value2(Long value) { - setSenderCaseId(value); - return this; - } - - @Override - public JLaunchAttributeRulesRecord value3(String value) { - setKey(value); - return this; - } - - @Override - public JLaunchAttributeRulesRecord value4(String value) { - setValue(value); - return this; - } - - @Override - public JLaunchAttributeRulesRecord values(Long value1, Long value2, String value3, String value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -219,9 +100,10 @@ public JLaunchAttributeRulesRecord() { public JLaunchAttributeRulesRecord(Long id, Long senderCaseId, String key, String value) { super(JLaunchAttributeRules.LAUNCH_ATTRIBUTE_RULES); - set(0, id); - set(1, senderCaseId); - set(2, key); - set(3, value); + setId(id); + setSenderCaseId(senderCaseId); + setKey(key); + setValue(value); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNamesRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNamesRecord.java index 7e2283a23..820352c5a 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNamesRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNamesRecord.java @@ -6,28 +6,16 @@ import com.epam.ta.reportportal.jooq.tables.JLaunchNames; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JLaunchNamesRecord extends TableRecordImpl implements Record2 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JLaunchNamesRecord extends TableRecordImpl { - private static final long serialVersionUID = -1168746037; + private static final long serialVersionUID = 1L; /** * Setter for public.launch_names.sender_case_id. @@ -57,69 +45,6 @@ public String getLaunchName() { return (String) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JLaunchNames.LAUNCH_NAMES.SENDER_CASE_ID; - } - - @Override - public Field field2() { - return JLaunchNames.LAUNCH_NAMES.LAUNCH_NAME; - } - - @Override - public Long component1() { - return getSenderCaseId(); - } - - @Override - public String component2() { - return getLaunchName(); - } - - @Override - public Long value1() { - return getSenderCaseId(); - } - - @Override - public String value2() { - return getLaunchName(); - } - - @Override - public JLaunchNamesRecord value1(Long value) { - setSenderCaseId(value); - return this; - } - - @Override - public JLaunchNamesRecord value2(String value) { - setLaunchName(value); - return this; - } - - @Override - public JLaunchNamesRecord values(Long value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -137,7 +62,8 @@ public JLaunchNamesRecord() { public JLaunchNamesRecord(Long senderCaseId, String launchName) { super(JLaunchNames.LAUNCH_NAMES); - set(0, senderCaseId); - set(1, launchName); + setSenderCaseId(senderCaseId); + setLaunchName(launchName); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNumberRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNumberRecord.java index fba7c8831..92c02f6c5 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNumberRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchNumberRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JLaunchNumber; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JLaunchNumberRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = -1978268674; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JLaunchNumberRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.launch_number.id. @@ -95,113 +83,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JLaunchNumber.LAUNCH_NUMBER.ID; - } - - @Override - public Field field2() { - return JLaunchNumber.LAUNCH_NUMBER.PROJECT_ID; - } - - @Override - public Field field3() { - return JLaunchNumber.LAUNCH_NUMBER.LAUNCH_NAME; - } - - @Override - public Field field4() { - return JLaunchNumber.LAUNCH_NUMBER.NUMBER; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getProjectId(); - } - - @Override - public String component3() { - return getLaunchName(); - } - - @Override - public Integer component4() { - return getNumber(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getProjectId(); - } - - @Override - public String value3() { - return getLaunchName(); - } - - @Override - public Integer value4() { - return getNumber(); - } - - @Override - public JLaunchNumberRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JLaunchNumberRecord value2(Long value) { - setProjectId(value); - return this; - } - - @Override - public JLaunchNumberRecord value3(String value) { - setLaunchName(value); - return this; - } - - @Override - public JLaunchNumberRecord value4(Integer value) { - setNumber(value); - return this; - } - - @Override - public JLaunchNumberRecord values(Long value1, Long value2, String value3, Integer value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -219,9 +100,10 @@ public JLaunchNumberRecord() { public JLaunchNumberRecord(Long id, Long projectId, String launchName, Integer number) { super(JLaunchNumber.LAUNCH_NUMBER); - set(0, id); - set(1, projectId); - set(2, launchName); - set(3, number); + setId(id); + setProjectId(projectId); + setLaunchName(launchName); + setNumber(number); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchRecord.java index 79c76baf2..deed1f45d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLaunchRecord.java @@ -11,29 +11,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record16; -import org.jooq.Row16; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JLaunchRecord extends UpdatableRecordImpl implements Record16 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JLaunchRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 1810115370; + private static final long serialVersionUID = 1L; /** * Setter for public.launch.id. @@ -268,377 +256,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record16 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row16 fieldsRow() { - return (Row16) super.fieldsRow(); - } - - @Override - public Row16 valuesRow() { - return (Row16) super.valuesRow(); - } - - @Override - public Field field1() { - return JLaunch.LAUNCH.ID; - } - - @Override - public Field field2() { - return JLaunch.LAUNCH.UUID; - } - - @Override - public Field field3() { - return JLaunch.LAUNCH.PROJECT_ID; - } - - @Override - public Field field4() { - return JLaunch.LAUNCH.USER_ID; - } - - @Override - public Field field5() { - return JLaunch.LAUNCH.NAME; - } - - @Override - public Field field6() { - return JLaunch.LAUNCH.DESCRIPTION; - } - - @Override - public Field field7() { - return JLaunch.LAUNCH.START_TIME; - } - - @Override - public Field field8() { - return JLaunch.LAUNCH.END_TIME; - } - - @Override - public Field field9() { - return JLaunch.LAUNCH.NUMBER; - } - - @Override - public Field field10() { - return JLaunch.LAUNCH.LAST_MODIFIED; - } - - @Override - public Field field11() { - return JLaunch.LAUNCH.MODE; - } - - @Override - public Field field12() { - return JLaunch.LAUNCH.STATUS; - } - - @Override - public Field field13() { - return JLaunch.LAUNCH.HAS_RETRIES; - } - - @Override - public Field field14() { - return JLaunch.LAUNCH.RERUN; - } - - @Override - public Field field15() { - return JLaunch.LAUNCH.APPROXIMATE_DURATION; - } - - @Override - public Field field16() { - return JLaunch.LAUNCH.RETENTION_POLICY; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getUuid(); - } - - @Override - public Long component3() { - return getProjectId(); - } - - @Override - public Long component4() { - return getUserId(); - } - - @Override - public String component5() { - return getName(); - } - - @Override - public String component6() { - return getDescription(); - } - - @Override - public Instant component7() { - return getStartTime(); - } - - @Override - public Instant component8() { - return getEndTime(); - } - - @Override - public Integer component9() { - return getNumber(); - } - - @Override - public Instant component10() { - return getLastModified(); - } - - @Override - public JLaunchModeEnum component11() { - return getMode(); - } - - @Override - public JStatusEnum component12() { - return getStatus(); - } - - @Override - public Boolean component13() { - return getHasRetries(); - } - - @Override - public Boolean component14() { - return getRerun(); - } - - @Override - public Double component15() { - return getApproximateDuration(); - } - - @Override - public JRetentionPolicyEnum component16() { - return getRetentionPolicy(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getUuid(); - } - - @Override - public Long value3() { - return getProjectId(); - } - - @Override - public Long value4() { - return getUserId(); - } - - @Override - public String value5() { - return getName(); - } - - @Override - public String value6() { - return getDescription(); - } - - @Override - public Instant value7() { - return getStartTime(); - } - - @Override - public Instant value8() { - return getEndTime(); - } - - @Override - public Integer value9() { - return getNumber(); - } - - @Override - public Instant value10() { - return getLastModified(); - } - - @Override - public JLaunchModeEnum value11() { - return getMode(); - } - - @Override - public JStatusEnum value12() { - return getStatus(); - } - - @Override - public Boolean value13() { - return getHasRetries(); - } - - @Override - public Boolean value14() { - return getRerun(); - } - - @Override - public Double value15() { - return getApproximateDuration(); - } - - @Override - public JRetentionPolicyEnum value16() { - return getRetentionPolicy(); - } - - @Override - public JLaunchRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JLaunchRecord value2(String value) { - setUuid(value); - return this; - } - - @Override - public JLaunchRecord value3(Long value) { - setProjectId(value); - return this; - } - - @Override - public JLaunchRecord value4(Long value) { - setUserId(value); - return this; - } - - @Override - public JLaunchRecord value5(String value) { - setName(value); - return this; - } - - @Override - public JLaunchRecord value6(String value) { - setDescription(value); - return this; - } - - @Override - public JLaunchRecord value7(Instant value) { - setStartTime(value); - return this; - } - - @Override - public JLaunchRecord value8(Instant value) { - setEndTime(value); - return this; - } - - @Override - public JLaunchRecord value9(Integer value) { - setNumber(value); - return this; - } - - @Override - public JLaunchRecord value10(Instant value) { - setLastModified(value); - return this; - } - - @Override - public JLaunchRecord value11(JLaunchModeEnum value) { - setMode(value); - return this; - } - - @Override - public JLaunchRecord value12(JStatusEnum value) { - setStatus(value); - return this; - } - - @Override - public JLaunchRecord value13(Boolean value) { - setHasRetries(value); - return this; - } - - @Override - public JLaunchRecord value14(Boolean value) { - setRerun(value); - return this; - } - - @Override - public JLaunchRecord value15(Double value) { - setApproximateDuration(value); - return this; - } - - @Override - public JLaunchRecord value16(JRetentionPolicyEnum value) { - setRetentionPolicy(value); - return this; - } - - @Override - public JLaunchRecord values(Long value1, String value2, Long value3, Long value4, String value5, String value6, Instant value7, Instant value8, Integer value9, Instant value10, JLaunchModeEnum value11, JStatusEnum value12, Boolean value13, Boolean value14, Double value15, JRetentionPolicyEnum value16) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - value14(value14); - value15(value15); - value16(value16); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -656,21 +273,22 @@ public JLaunchRecord() { public JLaunchRecord(Long id, String uuid, Long projectId, Long userId, String name, String description, Instant startTime, Instant endTime, Integer number, Instant lastModified, JLaunchModeEnum mode, JStatusEnum status, Boolean hasRetries, Boolean rerun, Double approximateDuration, JRetentionPolicyEnum retentionPolicy) { super(JLaunch.LAUNCH); - set(0, id); - set(1, uuid); - set(2, projectId); - set(3, userId); - set(4, name); - set(5, description); - set(6, startTime); - set(7, endTime); - set(8, number); - set(9, lastModified); - set(10, mode); - set(11, status); - set(12, hasRetries); - set(13, rerun); - set(14, approximateDuration); - set(15, retentionPolicy); + setId(id); + setUuid(uuid); + setProjectId(projectId); + setUserId(userId); + setName(name); + setDescription(description); + setStartTime(startTime); + setEndTime(endTime); + setNumber(number); + setLastModified(lastModified); + setMode(mode); + setStatus(status); + setHasRetries(hasRetries); + setRerun(rerun); + setApproximateDuration(approximateDuration); + setRetentionPolicy(retentionPolicy); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLogRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLogRecord.java index 00ccbe7c3..41e811dcf 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLogRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JLogRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record11; -import org.jooq.Row11; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JLogRecord extends UpdatableRecordImpl implements Record11 { - - private static final long serialVersionUID = -537369657; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JLogRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.log.id. @@ -195,267 +183,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record11 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); - } - - @Override - public Field field1() { - return JLog.LOG.ID; - } - - @Override - public Field field2() { - return JLog.LOG.UUID; - } - - @Override - public Field field3() { - return JLog.LOG.LOG_TIME; - } - - @Override - public Field field4() { - return JLog.LOG.LOG_MESSAGE; - } - - @Override - public Field field5() { - return JLog.LOG.ITEM_ID; - } - - @Override - public Field field6() { - return JLog.LOG.LAUNCH_ID; - } - - @Override - public Field field7() { - return JLog.LOG.LAST_MODIFIED; - } - - @Override - public Field field8() { - return JLog.LOG.LOG_LEVEL; - } - - @Override - public Field field9() { - return JLog.LOG.ATTACHMENT_ID; - } - - @Override - public Field field10() { - return JLog.LOG.PROJECT_ID; - } - - @Override - public Field field11() { - return JLog.LOG.CLUSTER_ID; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getUuid(); - } - - @Override - public Instant component3() { - return getLogTime(); - } - - @Override - public String component4() { - return getLogMessage(); - } - - @Override - public Long component5() { - return getItemId(); - } - - @Override - public Long component6() { - return getLaunchId(); - } - - @Override - public Instant component7() { - return getLastModified(); - } - - @Override - public Integer component8() { - return getLogLevel(); - } - - @Override - public Long component9() { - return getAttachmentId(); - } - - @Override - public Long component10() { - return getProjectId(); - } - - @Override - public Long component11() { - return getClusterId(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getUuid(); - } - - @Override - public Instant value3() { - return getLogTime(); - } - - @Override - public String value4() { - return getLogMessage(); - } - - @Override - public Long value5() { - return getItemId(); - } - - @Override - public Long value6() { - return getLaunchId(); - } - - @Override - public Instant value7() { - return getLastModified(); - } - - @Override - public Integer value8() { - return getLogLevel(); - } - - @Override - public Long value9() { - return getAttachmentId(); - } - - @Override - public Long value10() { - return getProjectId(); - } - - @Override - public Long value11() { - return getClusterId(); - } - - @Override - public JLogRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JLogRecord value2(String value) { - setUuid(value); - return this; - } - - @Override - public JLogRecord value3(Instant value) { - setLogTime(value); - return this; - } - - @Override - public JLogRecord value4(String value) { - setLogMessage(value); - return this; - } - - @Override - public JLogRecord value5(Long value) { - setItemId(value); - return this; - } - - @Override - public JLogRecord value6(Long value) { - setLaunchId(value); - return this; - } - - @Override - public JLogRecord value7(Instant value) { - setLastModified(value); - return this; - } - - @Override - public JLogRecord value8(Integer value) { - setLogLevel(value); - return this; - } - - @Override - public JLogRecord value9(Long value) { - setAttachmentId(value); - return this; - } - - @Override - public JLogRecord value10(Long value) { - setProjectId(value); - return this; - } - - @Override - public JLogRecord value11(Long value) { - setClusterId(value); - return this; - } - - @Override - public JLogRecord values(Long value1, String value2, Instant value3, String value4, Long value5, Long value6, Instant value7, Integer value8, Long value9, Long value10, Long value11) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -473,16 +200,17 @@ public JLogRecord() { public JLogRecord(Long id, String uuid, Instant logTime, String logMessage, Long itemId, Long launchId, Instant lastModified, Integer logLevel, Long attachmentId, Long projectId, Long clusterId) { super(JLog.LOG); - set(0, id); - set(1, uuid); - set(2, logTime); - set(3, logMessage); - set(4, itemId); - set(5, launchId); - set(6, lastModified); - set(7, logLevel); - set(8, attachmentId); - set(9, projectId); - set(10, clusterId); + setId(id); + setUuid(uuid); + setLogTime(logTime); + setLogMessage(logMessage); + setItemId(itemId); + setLaunchId(launchId); + setLastModified(lastModified); + setLogLevel(logLevel); + setAttachmentId(attachmentId); + setProjectId(projectId); + setClusterId(clusterId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRecord.java index 83e6c4926..0bb80cd5e 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JOauthRegistration; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record12; -import org.jooq.Row12; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JOauthRegistrationRecord extends UpdatableRecordImpl implements Record12 { - - private static final long serialVersionUID = -1760457440; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JOauthRegistrationRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.oauth_registration.id. @@ -157,14 +145,16 @@ public String getUserInfoEndpointUri() { } /** - * Setter for public.oauth_registration.user_info_endpoint_name_attr. + * Setter for + * public.oauth_registration.user_info_endpoint_name_attr. */ public void setUserInfoEndpointNameAttr(String value) { set(9, value); } /** - * Getter for public.oauth_registration.user_info_endpoint_name_attr. + * Getter for + * public.oauth_registration.user_info_endpoint_name_attr. */ public String getUserInfoEndpointNameAttr() { return (String) get(9); @@ -207,289 +197,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record12 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); - } - - @Override - public Row12 valuesRow() { - return (Row12) super.valuesRow(); - } - - @Override - public Field field1() { - return JOauthRegistration.OAUTH_REGISTRATION.ID; - } - - @Override - public Field field2() { - return JOauthRegistration.OAUTH_REGISTRATION.CLIENT_ID; - } - - @Override - public Field field3() { - return JOauthRegistration.OAUTH_REGISTRATION.CLIENT_SECRET; - } - - @Override - public Field field4() { - return JOauthRegistration.OAUTH_REGISTRATION.CLIENT_AUTH_METHOD; - } - - @Override - public Field field5() { - return JOauthRegistration.OAUTH_REGISTRATION.AUTH_GRANT_TYPE; - } - - @Override - public Field field6() { - return JOauthRegistration.OAUTH_REGISTRATION.REDIRECT_URI_TEMPLATE; - } - - @Override - public Field field7() { - return JOauthRegistration.OAUTH_REGISTRATION.AUTHORIZATION_URI; - } - - @Override - public Field field8() { - return JOauthRegistration.OAUTH_REGISTRATION.TOKEN_URI; - } - - @Override - public Field field9() { - return JOauthRegistration.OAUTH_REGISTRATION.USER_INFO_ENDPOINT_URI; - } - - @Override - public Field field10() { - return JOauthRegistration.OAUTH_REGISTRATION.USER_INFO_ENDPOINT_NAME_ATTR; - } - - @Override - public Field field11() { - return JOauthRegistration.OAUTH_REGISTRATION.JWK_SET_URI; - } - - @Override - public Field field12() { - return JOauthRegistration.OAUTH_REGISTRATION.CLIENT_NAME; - } - - @Override - public String component1() { - return getId(); - } - - @Override - public String component2() { - return getClientId(); - } - - @Override - public String component3() { - return getClientSecret(); - } - - @Override - public String component4() { - return getClientAuthMethod(); - } - - @Override - public String component5() { - return getAuthGrantType(); - } - - @Override - public String component6() { - return getRedirectUriTemplate(); - } - - @Override - public String component7() { - return getAuthorizationUri(); - } - - @Override - public String component8() { - return getTokenUri(); - } - - @Override - public String component9() { - return getUserInfoEndpointUri(); - } - - @Override - public String component10() { - return getUserInfoEndpointNameAttr(); - } - - @Override - public String component11() { - return getJwkSetUri(); - } - - @Override - public String component12() { - return getClientName(); - } - - @Override - public String value1() { - return getId(); - } - - @Override - public String value2() { - return getClientId(); - } - - @Override - public String value3() { - return getClientSecret(); - } - - @Override - public String value4() { - return getClientAuthMethod(); - } - - @Override - public String value5() { - return getAuthGrantType(); - } - - @Override - public String value6() { - return getRedirectUriTemplate(); - } - - @Override - public String value7() { - return getAuthorizationUri(); - } - - @Override - public String value8() { - return getTokenUri(); - } - - @Override - public String value9() { - return getUserInfoEndpointUri(); - } - - @Override - public String value10() { - return getUserInfoEndpointNameAttr(); - } - - @Override - public String value11() { - return getJwkSetUri(); - } - - @Override - public String value12() { - return getClientName(); - } - - @Override - public JOauthRegistrationRecord value1(String value) { - setId(value); - return this; - } - - @Override - public JOauthRegistrationRecord value2(String value) { - setClientId(value); - return this; - } - - @Override - public JOauthRegistrationRecord value3(String value) { - setClientSecret(value); - return this; - } - - @Override - public JOauthRegistrationRecord value4(String value) { - setClientAuthMethod(value); - return this; - } - - @Override - public JOauthRegistrationRecord value5(String value) { - setAuthGrantType(value); - return this; - } - - @Override - public JOauthRegistrationRecord value6(String value) { - setRedirectUriTemplate(value); - return this; - } - - @Override - public JOauthRegistrationRecord value7(String value) { - setAuthorizationUri(value); - return this; - } - - @Override - public JOauthRegistrationRecord value8(String value) { - setTokenUri(value); - return this; - } - - @Override - public JOauthRegistrationRecord value9(String value) { - setUserInfoEndpointUri(value); - return this; - } - - @Override - public JOauthRegistrationRecord value10(String value) { - setUserInfoEndpointNameAttr(value); - return this; - } - - @Override - public JOauthRegistrationRecord value11(String value) { - setJwkSetUri(value); - return this; - } - - @Override - public JOauthRegistrationRecord value12(String value) { - setClientName(value); - return this; - } - - @Override - public JOauthRegistrationRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, String value11, String value12) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -507,17 +214,18 @@ public JOauthRegistrationRecord() { public JOauthRegistrationRecord(String id, String clientId, String clientSecret, String clientAuthMethod, String authGrantType, String redirectUriTemplate, String authorizationUri, String tokenUri, String userInfoEndpointUri, String userInfoEndpointNameAttr, String jwkSetUri, String clientName) { super(JOauthRegistration.OAUTH_REGISTRATION); - set(0, id); - set(1, clientId); - set(2, clientSecret); - set(3, clientAuthMethod); - set(4, authGrantType); - set(5, redirectUriTemplate); - set(6, authorizationUri); - set(7, tokenUri); - set(8, userInfoEndpointUri); - set(9, userInfoEndpointNameAttr); - set(10, jwkSetUri); - set(11, clientName); + setId(id); + setClientId(clientId); + setClientSecret(clientSecret); + setClientAuthMethod(clientAuthMethod); + setAuthGrantType(authGrantType); + setRedirectUriTemplate(redirectUriTemplate); + setAuthorizationUri(authorizationUri); + setTokenUri(tokenUri); + setUserInfoEndpointUri(userInfoEndpointUri); + setUserInfoEndpointNameAttr(userInfoEndpointNameAttr); + setJwkSetUri(jwkSetUri); + setClientName(clientName); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRestrictionRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRestrictionRecord.java index 9882acf6c..879577b42 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRestrictionRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationRestrictionRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JOauthRegistrationRestriction; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JOauthRegistrationRestrictionRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = 335765148; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JOauthRegistrationRestrictionRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.oauth_registration_restriction.id. @@ -45,14 +33,16 @@ public Integer getId() { } /** - * Setter for public.oauth_registration_restriction.oauth_registration_fk. + * Setter for + * public.oauth_registration_restriction.oauth_registration_fk. */ public void setOauthRegistrationFk(String value) { set(1, value); } /** - * Getter for public.oauth_registration_restriction.oauth_registration_fk. + * Getter for + * public.oauth_registration_restriction.oauth_registration_fk. */ public String getOauthRegistrationFk() { return (String) get(1); @@ -95,113 +85,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.ID; - } - - @Override - public Field field2() { - return JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.OAUTH_REGISTRATION_FK; - } - - @Override - public Field field3() { - return JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.TYPE; - } - - @Override - public Field field4() { - return JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION.VALUE; - } - - @Override - public Integer component1() { - return getId(); - } - - @Override - public String component2() { - return getOauthRegistrationFk(); - } - - @Override - public String component3() { - return getType(); - } - - @Override - public String component4() { - return getValue(); - } - - @Override - public Integer value1() { - return getId(); - } - - @Override - public String value2() { - return getOauthRegistrationFk(); - } - - @Override - public String value3() { - return getType(); - } - - @Override - public String value4() { - return getValue(); - } - - @Override - public JOauthRegistrationRestrictionRecord value1(Integer value) { - setId(value); - return this; - } - - @Override - public JOauthRegistrationRestrictionRecord value2(String value) { - setOauthRegistrationFk(value); - return this; - } - - @Override - public JOauthRegistrationRestrictionRecord value3(String value) { - setType(value); - return this; - } - - @Override - public JOauthRegistrationRestrictionRecord value4(String value) { - setValue(value); - return this; - } - - @Override - public JOauthRegistrationRestrictionRecord values(Integer value1, String value2, String value3, String value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -219,9 +102,10 @@ public JOauthRegistrationRestrictionRecord() { public JOauthRegistrationRestrictionRecord(Integer id, String oauthRegistrationFk, String type, String value) { super(JOauthRegistrationRestriction.OAUTH_REGISTRATION_RESTRICTION); - set(0, id); - set(1, oauthRegistrationFk); - set(2, type); - set(3, value); + setId(id); + setOauthRegistrationFk(oauthRegistrationFk); + setType(type); + setValue(value); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationScopeRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationScopeRecord.java index f514ad369..27c15a2eb 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationScopeRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOauthRegistrationScopeRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JOauthRegistrationScope; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JOauthRegistrationScopeRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = 688903255; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JOauthRegistrationScopeRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.oauth_registration_scope.id. @@ -45,14 +33,16 @@ public Integer getId() { } /** - * Setter for public.oauth_registration_scope.oauth_registration_fk. + * Setter for + * public.oauth_registration_scope.oauth_registration_fk. */ public void setOauthRegistrationFk(String value) { set(1, value); } /** - * Getter for public.oauth_registration_scope.oauth_registration_fk. + * Getter for + * public.oauth_registration_scope.oauth_registration_fk. */ public String getOauthRegistrationFk() { return (String) get(1); @@ -81,91 +71,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.ID; - } - - @Override - public Field field2() { - return JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.OAUTH_REGISTRATION_FK; - } - - @Override - public Field field3() { - return JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE.SCOPE; - } - - @Override - public Integer component1() { - return getId(); - } - - @Override - public String component2() { - return getOauthRegistrationFk(); - } - - @Override - public String component3() { - return getScope(); - } - - @Override - public Integer value1() { - return getId(); - } - - @Override - public String value2() { - return getOauthRegistrationFk(); - } - - @Override - public String value3() { - return getScope(); - } - - @Override - public JOauthRegistrationScopeRecord value1(Integer value) { - setId(value); - return this; - } - - @Override - public JOauthRegistrationScopeRecord value2(String value) { - setOauthRegistrationFk(value); - return this; - } - - @Override - public JOauthRegistrationScopeRecord value3(String value) { - setScope(value); - return this; - } - - @Override - public JOauthRegistrationScopeRecord values(Integer value1, String value2, String value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -183,8 +88,9 @@ public JOauthRegistrationScopeRecord() { public JOauthRegistrationScopeRecord(Integer id, String oauthRegistrationFk, String scope) { super(JOauthRegistrationScope.OAUTH_REGISTRATION_SCOPE); - set(0, id); - set(1, oauthRegistrationFk); - set(2, scope); + setId(id); + setOauthRegistrationFk(oauthRegistrationFk); + setScope(scope); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOnboardingRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOnboardingRecord.java index e1cbcbcc0..160a80d36 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOnboardingRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOnboardingRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JOnboardingRecord extends UpdatableRecordImpl implements Record5 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JOnboardingRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -1587023310; + private static final long serialVersionUID = 1L; /** * Setter for public.onboarding.id. @@ -111,135 +99,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return JOnboarding.ONBOARDING.ID; - } - - @Override - public Field field2() { - return JOnboarding.ONBOARDING.DATA; - } - - @Override - public Field field3() { - return JOnboarding.ONBOARDING.PAGE; - } - - @Override - public Field field4() { - return JOnboarding.ONBOARDING.AVAILABLE_FROM; - } - - @Override - public Field field5() { - return JOnboarding.ONBOARDING.AVAILABLE_TO; - } - - @Override - public Short component1() { - return getId(); - } - - @Override - public String component2() { - return getData(); - } - - @Override - public String component3() { - return getPage(); - } - - @Override - public Instant component4() { - return getAvailableFrom(); - } - - @Override - public Instant component5() { - return getAvailableTo(); - } - - @Override - public Short value1() { - return getId(); - } - - @Override - public String value2() { - return getData(); - } - - @Override - public String value3() { - return getPage(); - } - - @Override - public Instant value4() { - return getAvailableFrom(); - } - - @Override - public Instant value5() { - return getAvailableTo(); - } - - @Override - public JOnboardingRecord value1(Short value) { - setId(value); - return this; - } - - @Override - public JOnboardingRecord value2(String value) { - setData(value); - return this; - } - - @Override - public JOnboardingRecord value3(String value) { - setPage(value); - return this; - } - - @Override - public JOnboardingRecord value4(Instant value) { - setAvailableFrom(value); - return this; - } - - @Override - public JOnboardingRecord value5(Instant value) { - setAvailableTo(value); - return this; - } - - @Override - public JOnboardingRecord values(Short value1, String value2, String value3, Instant value4, Instant value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -257,10 +116,11 @@ public JOnboardingRecord() { public JOnboardingRecord(Short id, String data, String page, Instant availableFrom, Instant availableTo) { super(JOnboarding.ONBOARDING); - set(0, id); - set(1, data); - set(2, page); - set(3, availableFrom); - set(4, availableTo); + setId(id); + setData(data); + setPage(page); + setAvailableFrom(availableFrom); + setAvailableTo(availableTo); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOwnedEntityRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOwnedEntityRecord.java index 047b04ec5..732209805 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOwnedEntityRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JOwnedEntityRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JOwnedEntity; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JOwnedEntityRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = -1583001151; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JOwnedEntityRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.owned_entity.id. @@ -81,91 +69,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JOwnedEntity.OWNED_ENTITY.ID; - } - - @Override - public Field field2() { - return JOwnedEntity.OWNED_ENTITY.OWNER; - } - - @Override - public Field field3() { - return JOwnedEntity.OWNED_ENTITY.PROJECT_ID; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getOwner(); - } - - @Override - public Long component3() { - return getProjectId(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getOwner(); - } - - @Override - public Long value3() { - return getProjectId(); - } - - @Override - public JOwnedEntityRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JOwnedEntityRecord value2(String value) { - setOwner(value); - return this; - } - - @Override - public JOwnedEntityRecord value3(Long value) { - setProjectId(value); - return this; - } - - @Override - public JOwnedEntityRecord values(Long value1, String value2, Long value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -183,8 +86,9 @@ public JOwnedEntityRecord() { public JOwnedEntityRecord(Long id, String owner, Long projectId) { super(JOwnedEntity.OWNED_ENTITY); - set(0, id); - set(1, owner); - set(2, projectId); + setId(id); + setOwner(owner); + setProjectId(projectId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JParameterRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JParameterRecord.java index 2778ef7b7..fe7ffff39 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JParameterRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JParameterRecord.java @@ -6,28 +6,16 @@ import com.epam.ta.reportportal.jooq.tables.JParameter; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JParameterRecord extends TableRecordImpl implements Record3 { - - private static final long serialVersionUID = 607314343; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JParameterRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.parameter.item_id. @@ -71,91 +59,6 @@ public String getValue() { return (String) get(2); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JParameter.PARAMETER.ITEM_ID; - } - - @Override - public Field field2() { - return JParameter.PARAMETER.KEY; - } - - @Override - public Field field3() { - return JParameter.PARAMETER.VALUE; - } - - @Override - public Long component1() { - return getItemId(); - } - - @Override - public String component2() { - return getKey(); - } - - @Override - public String component3() { - return getValue(); - } - - @Override - public Long value1() { - return getItemId(); - } - - @Override - public String value2() { - return getKey(); - } - - @Override - public String value3() { - return getValue(); - } - - @Override - public JParameterRecord value1(Long value) { - setItemId(value); - return this; - } - - @Override - public JParameterRecord value2(String value) { - setKey(value); - return this; - } - - @Override - public JParameterRecord value3(String value) { - setValue(value); - return this; - } - - @Override - public JParameterRecord values(Long value1, String value2, String value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -173,8 +76,9 @@ public JParameterRecord() { public JParameterRecord(Long itemId, String key, String value) { super(JParameter.PARAMETER); - set(0, itemId); - set(1, key); - set(2, value); + setItemId(itemId); + setKey(key); + setValue(value); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateRecord.java index acff7d0b0..2564a9f36 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JPatternTemplate; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JPatternTemplateRecord extends UpdatableRecordImpl implements Record6 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JPatternTemplateRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -264502879; + private static final long serialVersionUID = 1L; /** * Setter for public.pattern_template.id. @@ -123,157 +111,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return JPatternTemplate.PATTERN_TEMPLATE.ID; - } - - @Override - public Field field2() { - return JPatternTemplate.PATTERN_TEMPLATE.NAME; - } - - @Override - public Field field3() { - return JPatternTemplate.PATTERN_TEMPLATE.VALUE; - } - - @Override - public Field field4() { - return JPatternTemplate.PATTERN_TEMPLATE.TYPE; - } - - @Override - public Field field5() { - return JPatternTemplate.PATTERN_TEMPLATE.ENABLED; - } - - @Override - public Field field6() { - return JPatternTemplate.PATTERN_TEMPLATE.PROJECT_ID; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getValue(); - } - - @Override - public String component4() { - return getType(); - } - - @Override - public Boolean component5() { - return getEnabled(); - } - - @Override - public Long component6() { - return getProjectId(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getValue(); - } - - @Override - public String value4() { - return getType(); - } - - @Override - public Boolean value5() { - return getEnabled(); - } - - @Override - public Long value6() { - return getProjectId(); - } - - @Override - public JPatternTemplateRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JPatternTemplateRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JPatternTemplateRecord value3(String value) { - setValue(value); - return this; - } - - @Override - public JPatternTemplateRecord value4(String value) { - setType(value); - return this; - } - - @Override - public JPatternTemplateRecord value5(Boolean value) { - setEnabled(value); - return this; - } - - @Override - public JPatternTemplateRecord value6(Long value) { - setProjectId(value); - return this; - } - - @Override - public JPatternTemplateRecord values(Long value1, String value2, String value3, String value4, Boolean value5, Long value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -291,11 +128,12 @@ public JPatternTemplateRecord() { public JPatternTemplateRecord(Long id, String name, String value, String type, Boolean enabled, Long projectId) { super(JPatternTemplate.PATTERN_TEMPLATE); - set(0, id); - set(1, name); - set(2, value); - set(3, type); - set(4, enabled); - set(5, projectId); + setId(id); + setName(name); + setValue(value); + setType(type); + setEnabled(enabled); + setProjectId(projectId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateTestItemRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateTestItemRecord.java index 67dabcd8a..1de06fc42 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateTestItemRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPatternTemplateTestItemRecord.java @@ -6,28 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JPatternTemplateTestItem; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JPatternTemplateTestItemRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = 884087599; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JPatternTemplateTestItemRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.pattern_template_test_item.pattern_id. @@ -66,69 +55,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.PATTERN_ID; - } - - @Override - public Field field2() { - return JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM.ITEM_ID; - } - - @Override - public Long component1() { - return getPatternId(); - } - - @Override - public Long component2() { - return getItemId(); - } - - @Override - public Long value1() { - return getPatternId(); - } - - @Override - public Long value2() { - return getItemId(); - } - - @Override - public JPatternTemplateTestItemRecord value1(Long value) { - setPatternId(value); - return this; - } - - @Override - public JPatternTemplateTestItemRecord value2(Long value) { - setItemId(value); - return this; - } - - @Override - public JPatternTemplateTestItemRecord values(Long value1, Long value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -146,7 +72,8 @@ public JPatternTemplateTestItemRecord() { public JPatternTemplateTestItemRecord(Long patternId, Long itemId) { super(JPatternTemplateTestItem.PATTERN_TEMPLATE_TEST_ITEM); - set(0, patternId); - set(1, itemId); + setPatternId(patternId); + setItemId(itemId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPgpArmorHeadersRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPgpArmorHeadersRecord.java index aebb70718..dfd35c5d9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPgpArmorHeadersRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JPgpArmorHeadersRecord.java @@ -6,28 +6,16 @@ import com.epam.ta.reportportal.jooq.tables.JPgpArmorHeaders; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JPgpArmorHeadersRecord extends TableRecordImpl implements Record2 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JPgpArmorHeadersRecord extends TableRecordImpl { - private static final long serialVersionUID = 483081900; + private static final long serialVersionUID = 1L; /** * Setter for public.pgp_armor_headers.key. @@ -57,69 +45,6 @@ public String getValue() { return (String) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JPgpArmorHeaders.PGP_ARMOR_HEADERS.KEY; - } - - @Override - public Field field2() { - return JPgpArmorHeaders.PGP_ARMOR_HEADERS.VALUE; - } - - @Override - public String component1() { - return getKey(); - } - - @Override - public String component2() { - return getValue(); - } - - @Override - public String value1() { - return getKey(); - } - - @Override - public String value2() { - return getValue(); - } - - @Override - public JPgpArmorHeadersRecord value1(String value) { - setKey(value); - return this; - } - - @Override - public JPgpArmorHeadersRecord value2(String value) { - setValue(value); - return this; - } - - @Override - public JPgpArmorHeadersRecord values(String value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -137,7 +62,8 @@ public JPgpArmorHeadersRecord() { public JPgpArmorHeadersRecord(String key, String value) { super(JPgpArmorHeaders.PGP_ARMOR_HEADERS); - set(0, key); - set(1, value); + setKey(key); + setValue(value); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectAttributeRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectAttributeRecord.java index d3de3e2cb..00590da01 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectAttributeRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectAttributeRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JProjectAttribute; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record2; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JProjectAttributeRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = -1540669256; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JProjectAttributeRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.project_attribute.attribute_id. @@ -81,91 +69,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JProjectAttribute.PROJECT_ATTRIBUTE.ATTRIBUTE_ID; - } - - @Override - public Field field2() { - return JProjectAttribute.PROJECT_ATTRIBUTE.VALUE; - } - - @Override - public Field field3() { - return JProjectAttribute.PROJECT_ATTRIBUTE.PROJECT_ID; - } - - @Override - public Long component1() { - return getAttributeId(); - } - - @Override - public String component2() { - return getValue(); - } - - @Override - public Long component3() { - return getProjectId(); - } - - @Override - public Long value1() { - return getAttributeId(); - } - - @Override - public String value2() { - return getValue(); - } - - @Override - public Long value3() { - return getProjectId(); - } - - @Override - public JProjectAttributeRecord value1(Long value) { - setAttributeId(value); - return this; - } - - @Override - public JProjectAttributeRecord value2(String value) { - setValue(value); - return this; - } - - @Override - public JProjectAttributeRecord value3(Long value) { - setProjectId(value); - return this; - } - - @Override - public JProjectAttributeRecord values(Long value1, String value2, Long value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -183,8 +86,9 @@ public JProjectAttributeRecord() { public JProjectAttributeRecord(Long attributeId, String value, Long projectId) { super(JProjectAttribute.PROJECT_ATTRIBUTE); - set(0, attributeId); - set(1, value); - set(2, projectId); + setAttributeId(attributeId); + setValue(value); + setProjectId(projectId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectRecord.java index f7575ae27..ae58d87c2 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectRecord.java @@ -8,30 +8,18 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record7; -import org.jooq.Row7; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JProjectRecord extends UpdatableRecordImpl implements Record7 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JProjectRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -29128502; + private static final long serialVersionUID = 1L; /** * Setter for public.project.id. @@ -140,179 +128,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record7 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); - } - - @Override - public Field field1() { - return JProject.PROJECT.ID; - } - - @Override - public Field field2() { - return JProject.PROJECT.NAME; - } - - @Override - public Field field3() { - return JProject.PROJECT.PROJECT_TYPE; - } - - @Override - public Field field4() { - return JProject.PROJECT.ORGANIZATION; - } - - @Override - public Field field5() { - return JProject.PROJECT.CREATION_DATE; - } - - @Override - public Field field6() { - return JProject.PROJECT.METADATA; - } - - @Override - public Field field7() { - return JProject.PROJECT.ALLOCATED_STORAGE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getProjectType(); - } - - @Override - public String component4() { - return getOrganization(); - } - - @Override - public Instant component5() { - return getCreationDate(); - } - - @Override - public JSONB component6() { - return getMetadata(); - } - - @Override - public Long component7() { - return getAllocatedStorage(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getProjectType(); - } - - @Override - public String value4() { - return getOrganization(); - } - - @Override - public Instant value5() { - return getCreationDate(); - } - - @Override - public JSONB value6() { - return getMetadata(); - } - - @Override - public Long value7() { - return getAllocatedStorage(); - } - - @Override - public JProjectRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JProjectRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JProjectRecord value3(String value) { - setProjectType(value); - return this; - } - - @Override - public JProjectRecord value4(String value) { - setOrganization(value); - return this; - } - - @Override - public JProjectRecord value5(Instant value) { - setCreationDate(value); - return this; - } - - @Override - public JProjectRecord value6(JSONB value) { - setMetadata(value); - return this; - } - - @Override - public JProjectRecord value7(Long value) { - setAllocatedStorage(value); - return this; - } - - @Override - public JProjectRecord values(Long value1, String value2, String value3, String value4, Instant value5, JSONB value6, Long value7) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -330,12 +145,13 @@ public JProjectRecord() { public JProjectRecord(Long id, String name, String projectType, String organization, Instant creationDate, JSONB metadata, Long allocatedStorage) { super(JProject.PROJECT); - set(0, id); - set(1, name); - set(2, projectType); - set(3, organization); - set(4, creationDate); - set(5, metadata); - set(6, allocatedStorage); + setId(id); + setName(name); + setProjectType(projectType); + setOrganization(organization); + setCreationDate(creationDate); + setMetadata(metadata); + setAllocatedStorage(allocatedStorage); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectUserRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectUserRecord.java index 6604b6c18..53701ed44 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectUserRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JProjectUserRecord.java @@ -7,29 +7,17 @@ import com.epam.ta.reportportal.jooq.enums.JProjectRoleEnum; import com.epam.ta.reportportal.jooq.tables.JProjectUser; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record2; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JProjectUserRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = -388211168; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JProjectUserRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.project_user.user_id. @@ -82,91 +70,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JProjectUser.PROJECT_USER.USER_ID; - } - - @Override - public Field field2() { - return JProjectUser.PROJECT_USER.PROJECT_ID; - } - - @Override - public Field field3() { - return JProjectUser.PROJECT_USER.PROJECT_ROLE; - } - - @Override - public Long component1() { - return getUserId(); - } - - @Override - public Long component2() { - return getProjectId(); - } - - @Override - public JProjectRoleEnum component3() { - return getProjectRole(); - } - - @Override - public Long value1() { - return getUserId(); - } - - @Override - public Long value2() { - return getProjectId(); - } - - @Override - public JProjectRoleEnum value3() { - return getProjectRole(); - } - - @Override - public JProjectUserRecord value1(Long value) { - setUserId(value); - return this; - } - - @Override - public JProjectUserRecord value2(Long value) { - setProjectId(value); - return this; - } - - @Override - public JProjectUserRecord value3(JProjectRoleEnum value) { - setProjectRole(value); - return this; - } - - @Override - public JProjectUserRecord values(Long value1, Long value2, JProjectRoleEnum value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -184,8 +87,9 @@ public JProjectUserRecord() { public JProjectUserRecord(Long userId, Long projectId, JProjectRoleEnum projectRole) { super(JProjectUser.PROJECT_USER); - set(0, userId); - set(1, projectId); - set(2, projectRole); + setUserId(userId); + setProjectId(projectId); + setProjectRole(projectRole); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRecipientsRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRecipientsRecord.java index aee2b16d9..f03ce96bf 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRecipientsRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRecipientsRecord.java @@ -6,28 +6,16 @@ import com.epam.ta.reportportal.jooq.tables.JRecipients; -import javax.annotation.processing.Generated; - -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JRecipientsRecord extends TableRecordImpl implements Record2 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JRecipientsRecord extends TableRecordImpl { - private static final long serialVersionUID = 662647080; + private static final long serialVersionUID = 1L; /** * Setter for public.recipients.sender_case_id. @@ -57,69 +45,6 @@ public String getRecipient() { return (String) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JRecipients.RECIPIENTS.SENDER_CASE_ID; - } - - @Override - public Field field2() { - return JRecipients.RECIPIENTS.RECIPIENT; - } - - @Override - public Long component1() { - return getSenderCaseId(); - } - - @Override - public String component2() { - return getRecipient(); - } - - @Override - public Long value1() { - return getSenderCaseId(); - } - - @Override - public String value2() { - return getRecipient(); - } - - @Override - public JRecipientsRecord value1(Long value) { - setSenderCaseId(value); - return this; - } - - @Override - public JRecipientsRecord value2(String value) { - setRecipient(value); - return this; - } - - @Override - public JRecipientsRecord values(Long value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -137,7 +62,8 @@ public JRecipientsRecord() { public JRecipientsRecord(Long senderCaseId, String recipient) { super(JRecipients.RECIPIENTS); - set(0, senderCaseId); - set(1, recipient); + setSenderCaseId(senderCaseId); + setRecipient(recipient); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRestorePasswordBidRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRestorePasswordBidRecord.java index e132e2eb6..a89331cc7 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRestorePasswordBidRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JRestorePasswordBidRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JRestorePasswordBidRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = 1325364599; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JRestorePasswordBidRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.restore_password_bid.uuid. @@ -83,91 +71,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JRestorePasswordBid.RESTORE_PASSWORD_BID.UUID; - } - - @Override - public Field field2() { - return JRestorePasswordBid.RESTORE_PASSWORD_BID.LAST_MODIFIED; - } - - @Override - public Field field3() { - return JRestorePasswordBid.RESTORE_PASSWORD_BID.EMAIL; - } - - @Override - public String component1() { - return getUuid(); - } - - @Override - public Instant component2() { - return getLastModified(); - } - - @Override - public String component3() { - return getEmail(); - } - - @Override - public String value1() { - return getUuid(); - } - - @Override - public Instant value2() { - return getLastModified(); - } - - @Override - public String value3() { - return getEmail(); - } - - @Override - public JRestorePasswordBidRecord value1(String value) { - setUuid(value); - return this; - } - - @Override - public JRestorePasswordBidRecord value2(Instant value) { - setLastModified(value); - return this; - } - - @Override - public JRestorePasswordBidRecord value3(String value) { - setEmail(value); - return this; - } - - @Override - public JRestorePasswordBidRecord values(String value1, Instant value2, String value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -185,8 +88,9 @@ public JRestorePasswordBidRecord() { public JRestorePasswordBidRecord(String uuid, Instant lastModified, String email) { super(JRestorePasswordBid.RESTORE_PASSWORD_BID); - set(0, uuid); - set(1, lastModified); - set(2, email); + setUuid(uuid); + setLastModified(lastModified); + setEmail(email); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JSenderCaseRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JSenderCaseRecord.java index 7dbec63b2..1c340574b 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JSenderCaseRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JSenderCaseRecord.java @@ -7,30 +7,18 @@ import com.epam.ta.reportportal.jooq.enums.JLogicalOperatorEnum; import com.epam.ta.reportportal.jooq.tables.JSenderCase; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record8; -import org.jooq.Row8; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JSenderCaseRecord extends UpdatableRecordImpl implements Record8 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JSenderCaseRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -2078586129; + private static final long serialVersionUID = 1L; /** * Setter for public.sender_case.id. @@ -153,201 +141,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record8 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); - } - - @Override - public Row8 valuesRow() { - return (Row8) super.valuesRow(); - } - - @Override - public Field field1() { - return JSenderCase.SENDER_CASE.ID; - } - - @Override - public Field field2() { - return JSenderCase.SENDER_CASE.SEND_CASE; - } - - @Override - public Field field3() { - return JSenderCase.SENDER_CASE.PROJECT_ID; - } - - @Override - public Field field4() { - return JSenderCase.SENDER_CASE.ENABLED; - } - - @Override - public Field field5() { - return JSenderCase.SENDER_CASE.ATTRIBUTES_OPERATOR; - } - - @Override - public Field field6() { - return JSenderCase.SENDER_CASE.RULE_NAME; - } - - @Override - public Field field7() { - return JSenderCase.SENDER_CASE.RULE_TYPE; - } - - @Override - public Field field8() { - return JSenderCase.SENDER_CASE.RULE_DETAILS; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getSendCase(); - } - - @Override - public Long component3() { - return getProjectId(); - } - - @Override - public Boolean component4() { - return getEnabled(); - } - - @Override - public JLogicalOperatorEnum component5() { - return getAttributesOperator(); - } - - @Override - public String component6() { - return getRuleName(); - } - - @Override - public String component7() { - return getRuleType(); - } - - @Override - public JSONB component8() { - return getRuleDetails(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getSendCase(); - } - - @Override - public Long value3() { - return getProjectId(); - } - - @Override - public Boolean value4() { - return getEnabled(); - } - - @Override - public JLogicalOperatorEnum value5() { - return getAttributesOperator(); - } - - @Override - public String value6() { - return getRuleName(); - } - - @Override - public String value7() { - return getRuleType(); - } - - @Override - public JSONB value8() { - return getRuleDetails(); - } - - @Override - public JSenderCaseRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JSenderCaseRecord value2(String value) { - setSendCase(value); - return this; - } - - @Override - public JSenderCaseRecord value3(Long value) { - setProjectId(value); - return this; - } - - @Override - public JSenderCaseRecord value4(Boolean value) { - setEnabled(value); - return this; - } - - @Override - public JSenderCaseRecord value5(JLogicalOperatorEnum value) { - setAttributesOperator(value); - return this; - } - - @Override - public JSenderCaseRecord value6(String value) { - setRuleName(value); - return this; - } - - @Override - public JSenderCaseRecord value7(String value) { - setRuleType(value); - return this; - } - - @Override - public JSenderCaseRecord value8(JSONB value) { - setRuleDetails(value); - return this; - } - - @Override - public JSenderCaseRecord values(Long value1, String value2, Long value3, Boolean value4, JLogicalOperatorEnum value5, String value6, String value7, JSONB value8) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -365,13 +158,14 @@ public JSenderCaseRecord() { public JSenderCaseRecord(Long id, String sendCase, Long projectId, Boolean enabled, JLogicalOperatorEnum attributesOperator, String ruleName, String ruleType, JSONB ruleDetails) { super(JSenderCase.SENDER_CASE); - set(0, id); - set(1, sendCase); - set(2, projectId); - set(3, enabled); - set(4, attributesOperator); - set(5, ruleName); - set(6, ruleType); - set(7, ruleDetails); + setId(id); + setSendCase(sendCase); + setProjectId(projectId); + setEnabled(enabled); + setAttributesOperator(attributesOperator); + setRuleName(ruleName); + setRuleType(ruleType); + setRuleDetails(ruleDetails); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JServerSettingsRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JServerSettingsRecord.java index 7a7258660..6247df51d 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JServerSettingsRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JServerSettingsRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JServerSettings; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JServerSettingsRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = 1082773050; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JServerSettingsRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.server_settings.id. @@ -81,91 +69,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JServerSettings.SERVER_SETTINGS.ID; - } - - @Override - public Field field2() { - return JServerSettings.SERVER_SETTINGS.KEY; - } - - @Override - public Field field3() { - return JServerSettings.SERVER_SETTINGS.VALUE; - } - - @Override - public Short component1() { - return getId(); - } - - @Override - public String component2() { - return getKey(); - } - - @Override - public String component3() { - return getValue(); - } - - @Override - public Short value1() { - return getId(); - } - - @Override - public String value2() { - return getKey(); - } - - @Override - public String value3() { - return getValue(); - } - - @Override - public JServerSettingsRecord value1(Short value) { - setId(value); - return this; - } - - @Override - public JServerSettingsRecord value2(String value) { - setKey(value); - return this; - } - - @Override - public JServerSettingsRecord value3(String value) { - setValue(value); - return this; - } - - @Override - public JServerSettingsRecord values(Short value1, String value2, String value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -183,8 +86,9 @@ public JServerSettingsRecord() { public JServerSettingsRecord(Short id, String key, String value) { super(JServerSettings.SERVER_SETTINGS); - set(0, id); - set(1, key); - set(2, value); + setId(id); + setKey(key); + setValue(value); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JShedlockRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JShedlockRecord.java index f3bd9a429..923cb65c5 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JShedlockRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JShedlockRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JShedlockRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = -1480718162; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JShedlockRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.shedlock.name. @@ -97,113 +85,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JShedlock.SHEDLOCK.NAME; - } - - @Override - public Field field2() { - return JShedlock.SHEDLOCK.LOCK_UNTIL; - } - - @Override - public Field field3() { - return JShedlock.SHEDLOCK.LOCKED_AT; - } - - @Override - public Field field4() { - return JShedlock.SHEDLOCK.LOCKED_BY; - } - - @Override - public String component1() { - return getName(); - } - - @Override - public Instant component2() { - return getLockUntil(); - } - - @Override - public Instant component3() { - return getLockedAt(); - } - - @Override - public String component4() { - return getLockedBy(); - } - - @Override - public String value1() { - return getName(); - } - - @Override - public Instant value2() { - return getLockUntil(); - } - - @Override - public Instant value3() { - return getLockedAt(); - } - - @Override - public String value4() { - return getLockedBy(); - } - - @Override - public JShedlockRecord value1(String value) { - setName(value); - return this; - } - - @Override - public JShedlockRecord value2(Instant value) { - setLockUntil(value); - return this; - } - - @Override - public JShedlockRecord value3(Instant value) { - setLockedAt(value); - return this; - } - - @Override - public JShedlockRecord value4(String value) { - setLockedBy(value); - return this; - } - - @Override - public JShedlockRecord values(String value1, Instant value2, Instant value3, String value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -221,9 +102,10 @@ public JShedlockRecord() { public JShedlockRecord(String name, Instant lockUntil, Instant lockedAt, String lockedBy) { super(JShedlock.SHEDLOCK); - set(0, name); - set(1, lockUntil); - set(2, lockedAt); - set(3, lockedBy); + setName(name); + setLockUntil(lockUntil); + setLockedAt(lockedAt); + setLockedBy(lockedBy); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStaleMaterializedViewRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStaleMaterializedViewRecord.java index 29ab08dc9..59e5f3d54 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStaleMaterializedViewRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStaleMaterializedViewRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JStaleMaterializedViewRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = 1317537151; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JStaleMaterializedViewRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.stale_materialized_view.id. @@ -83,91 +71,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return JStaleMaterializedView.STALE_MATERIALIZED_VIEW.ID; - } - - @Override - public Field field2() { - return JStaleMaterializedView.STALE_MATERIALIZED_VIEW.NAME; - } - - @Override - public Field field3() { - return JStaleMaterializedView.STALE_MATERIALIZED_VIEW.CREATION_DATE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public Instant component3() { - return getCreationDate(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public Instant value3() { - return getCreationDate(); - } - - @Override - public JStaleMaterializedViewRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JStaleMaterializedViewRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JStaleMaterializedViewRecord value3(Instant value) { - setCreationDate(value); - return this; - } - - @Override - public JStaleMaterializedViewRecord values(Long value1, String value2, Instant value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -185,8 +88,9 @@ public JStaleMaterializedViewRecord() { public JStaleMaterializedViewRecord(Long id, String name, Instant creationDate) { super(JStaleMaterializedView.STALE_MATERIALIZED_VIEW); - set(0, id); - set(1, name); - set(2, creationDate); + setId(id); + setName(name); + setCreationDate(creationDate); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsFieldRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsFieldRecord.java index 55ac7fb6e..0adb90984 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsFieldRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsFieldRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JStatisticsField; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JStatisticsFieldRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = 1879883941; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JStatisticsFieldRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.statistics_field.sf_id. @@ -67,69 +55,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JStatisticsField.STATISTICS_FIELD.SF_ID; - } - - @Override - public Field field2() { - return JStatisticsField.STATISTICS_FIELD.NAME; - } - - @Override - public Long component1() { - return getSfId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public Long value1() { - return getSfId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public JStatisticsFieldRecord value1(Long value) { - setSfId(value); - return this; - } - - @Override - public JStatisticsFieldRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JStatisticsFieldRecord values(Long value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -147,7 +72,8 @@ public JStatisticsFieldRecord() { public JStatisticsFieldRecord(Long sfId, String name) { super(JStatisticsField.STATISTICS_FIELD); - set(0, sfId); - set(1, name); + setSfId(sfId); + setName(name); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsRecord.java index 4c78a3450..ba4607fd9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JStatisticsRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JStatistics; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JStatisticsRecord extends UpdatableRecordImpl implements Record5 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JStatisticsRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 1301927224; + private static final long serialVersionUID = 1L; /** * Setter for public.statistics.s_id. @@ -109,135 +97,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return JStatistics.STATISTICS.S_ID; - } - - @Override - public Field field2() { - return JStatistics.STATISTICS.S_COUNTER; - } - - @Override - public Field field3() { - return JStatistics.STATISTICS.LAUNCH_ID; - } - - @Override - public Field field4() { - return JStatistics.STATISTICS.ITEM_ID; - } - - @Override - public Field field5() { - return JStatistics.STATISTICS.STATISTICS_FIELD_ID; - } - - @Override - public Long component1() { - return getSId(); - } - - @Override - public Integer component2() { - return getSCounter(); - } - - @Override - public Long component3() { - return getLaunchId(); - } - - @Override - public Long component4() { - return getItemId(); - } - - @Override - public Long component5() { - return getStatisticsFieldId(); - } - - @Override - public Long value1() { - return getSId(); - } - - @Override - public Integer value2() { - return getSCounter(); - } - - @Override - public Long value3() { - return getLaunchId(); - } - - @Override - public Long value4() { - return getItemId(); - } - - @Override - public Long value5() { - return getStatisticsFieldId(); - } - - @Override - public JStatisticsRecord value1(Long value) { - setSId(value); - return this; - } - - @Override - public JStatisticsRecord value2(Integer value) { - setSCounter(value); - return this; - } - - @Override - public JStatisticsRecord value3(Long value) { - setLaunchId(value); - return this; - } - - @Override - public JStatisticsRecord value4(Long value) { - setItemId(value); - return this; - } - - @Override - public JStatisticsRecord value5(Long value) { - setStatisticsFieldId(value); - return this; - } - - @Override - public JStatisticsRecord values(Long value1, Integer value2, Long value3, Long value4, Long value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -255,10 +114,11 @@ public JStatisticsRecord() { public JStatisticsRecord(Long sId, Integer sCounter, Long launchId, Long itemId, Long statisticsFieldId) { super(JStatistics.STATISTICS); - set(0, sId); - set(1, sCounter); - set(2, launchId); - set(3, itemId); - set(4, statisticsFieldId); + setSId(sId); + setSCounter(sCounter); + setLaunchId(launchId); + setItemId(itemId); + setStatisticsFieldId(statisticsFieldId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemRecord.java index a4cd7ac0f..aebd4b7a9 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemRecord.java @@ -9,29 +9,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record18; -import org.jooq.Row18; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JTestItemRecord extends UpdatableRecordImpl implements Record18 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JTestItemRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 675716782; + private static final long serialVersionUID = 1L; /** * Setter for public.test_item.item_id. @@ -294,421 +282,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record18 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row18 fieldsRow() { - return (Row18) super.fieldsRow(); - } - - @Override - public Row18 valuesRow() { - return (Row18) super.valuesRow(); - } - - @Override - public Field field1() { - return JTestItem.TEST_ITEM.ITEM_ID; - } - - @Override - public Field field2() { - return JTestItem.TEST_ITEM.UUID; - } - - @Override - public Field field3() { - return JTestItem.TEST_ITEM.NAME; - } - - @Override - public Field field4() { - return JTestItem.TEST_ITEM.CODE_REF; - } - - @Override - public Field field5() { - return JTestItem.TEST_ITEM.TYPE; - } - - @Override - public Field field6() { - return JTestItem.TEST_ITEM.START_TIME; - } - - @Override - public Field field7() { - return JTestItem.TEST_ITEM.DESCRIPTION; - } - - @Override - public Field field8() { - return JTestItem.TEST_ITEM.LAST_MODIFIED; - } - - @Override - public Field field9() { - return JTestItem.TEST_ITEM.PATH; - } - - @Override - public Field field10() { - return JTestItem.TEST_ITEM.UNIQUE_ID; - } - - @Override - public Field field11() { - return JTestItem.TEST_ITEM.TEST_CASE_ID; - } - - @Override - public Field field12() { - return JTestItem.TEST_ITEM.HAS_CHILDREN; - } - - @Override - public Field field13() { - return JTestItem.TEST_ITEM.HAS_RETRIES; - } - - @Override - public Field field14() { - return JTestItem.TEST_ITEM.HAS_STATS; - } - - @Override - public Field field15() { - return JTestItem.TEST_ITEM.PARENT_ID; - } - - @Override - public Field field16() { - return JTestItem.TEST_ITEM.RETRY_OF; - } - - @Override - public Field field17() { - return JTestItem.TEST_ITEM.LAUNCH_ID; - } - - @Override - public Field field18() { - return JTestItem.TEST_ITEM.TEST_CASE_HASH; - } - - @Override - public Long component1() { - return getItemId(); - } - - @Override - public String component2() { - return getUuid(); - } - - @Override - public String component3() { - return getName(); - } - - @Override - public String component4() { - return getCodeRef(); - } - - @Override - public JTestItemTypeEnum component5() { - return getType(); - } - - @Override - public Instant component6() { - return getStartTime(); - } - - @Override - public String component7() { - return getDescription(); - } - - @Override - public Instant component8() { - return getLastModified(); - } - - @Override - public Object component9() { - return getPath(); - } - - @Override - public String component10() { - return getUniqueId(); - } - - @Override - public String component11() { - return getTestCaseId(); - } - - @Override - public Boolean component12() { - return getHasChildren(); - } - - @Override - public Boolean component13() { - return getHasRetries(); - } - - @Override - public Boolean component14() { - return getHasStats(); - } - - @Override - public Long component15() { - return getParentId(); - } - - @Override - public Long component16() { - return getRetryOf(); - } - - @Override - public Long component17() { - return getLaunchId(); - } - - @Override - public Integer component18() { - return getTestCaseHash(); - } - - @Override - public Long value1() { - return getItemId(); - } - - @Override - public String value2() { - return getUuid(); - } - - @Override - public String value3() { - return getName(); - } - - @Override - public String value4() { - return getCodeRef(); - } - - @Override - public JTestItemTypeEnum value5() { - return getType(); - } - - @Override - public Instant value6() { - return getStartTime(); - } - - @Override - public String value7() { - return getDescription(); - } - - @Override - public Instant value8() { - return getLastModified(); - } - - @Override - public Object value9() { - return getPath(); - } - - @Override - public String value10() { - return getUniqueId(); - } - - @Override - public String value11() { - return getTestCaseId(); - } - - @Override - public Boolean value12() { - return getHasChildren(); - } - - @Override - public Boolean value13() { - return getHasRetries(); - } - - @Override - public Boolean value14() { - return getHasStats(); - } - - @Override - public Long value15() { - return getParentId(); - } - - @Override - public Long value16() { - return getRetryOf(); - } - - @Override - public Long value17() { - return getLaunchId(); - } - - @Override - public Integer value18() { - return getTestCaseHash(); - } - - @Override - public JTestItemRecord value1(Long value) { - setItemId(value); - return this; - } - - @Override - public JTestItemRecord value2(String value) { - setUuid(value); - return this; - } - - @Override - public JTestItemRecord value3(String value) { - setName(value); - return this; - } - - @Override - public JTestItemRecord value4(String value) { - setCodeRef(value); - return this; - } - - @Override - public JTestItemRecord value5(JTestItemTypeEnum value) { - setType(value); - return this; - } - - @Override - public JTestItemRecord value6(Instant value) { - setStartTime(value); - return this; - } - - @Override - public JTestItemRecord value7(String value) { - setDescription(value); - return this; - } - - @Override - public JTestItemRecord value8(Instant value) { - setLastModified(value); - return this; - } - - @Override - public JTestItemRecord value9(Object value) { - setPath(value); - return this; - } - - @Override - public JTestItemRecord value10(String value) { - setUniqueId(value); - return this; - } - - @Override - public JTestItemRecord value11(String value) { - setTestCaseId(value); - return this; - } - - @Override - public JTestItemRecord value12(Boolean value) { - setHasChildren(value); - return this; - } - - @Override - public JTestItemRecord value13(Boolean value) { - setHasRetries(value); - return this; - } - - @Override - public JTestItemRecord value14(Boolean value) { - setHasStats(value); - return this; - } - - @Override - public JTestItemRecord value15(Long value) { - setParentId(value); - return this; - } - - @Override - public JTestItemRecord value16(Long value) { - setRetryOf(value); - return this; - } - - @Override - public JTestItemRecord value17(Long value) { - setLaunchId(value); - return this; - } - - @Override - public JTestItemRecord value18(Integer value) { - setTestCaseHash(value); - return this; - } - - @Override - public JTestItemRecord values(Long value1, String value2, String value3, String value4, JTestItemTypeEnum value5, Instant value6, String value7, Instant value8, Object value9, String value10, String value11, Boolean value12, Boolean value13, Boolean value14, Long value15, Long value16, Long value17, Integer value18) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - value14(value14); - value15(value15); - value16(value16); - value17(value17); - value18(value18); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -726,23 +299,24 @@ public JTestItemRecord() { public JTestItemRecord(Long itemId, String uuid, String name, String codeRef, JTestItemTypeEnum type, Instant startTime, String description, Instant lastModified, Object path, String uniqueId, String testCaseId, Boolean hasChildren, Boolean hasRetries, Boolean hasStats, Long parentId, Long retryOf, Long launchId, Integer testCaseHash) { super(JTestItem.TEST_ITEM); - set(0, itemId); - set(1, uuid); - set(2, name); - set(3, codeRef); - set(4, type); - set(5, startTime); - set(6, description); - set(7, lastModified); - set(8, path); - set(9, uniqueId); - set(10, testCaseId); - set(11, hasChildren); - set(12, hasRetries); - set(13, hasStats); - set(14, parentId); - set(15, retryOf); - set(16, launchId); - set(17, testCaseHash); + setItemId(itemId); + setUuid(uuid); + setName(name); + setCodeRef(codeRef); + setType(type); + setStartTime(startTime); + setDescription(description); + setLastModified(lastModified); + setPath(path); + setUniqueId(uniqueId); + setTestCaseId(testCaseId); + setHasChildren(hasChildren); + setHasRetries(hasRetries); + setHasStats(hasStats); + setParentId(parentId); + setRetryOf(retryOf); + setLaunchId(launchId); + setTestCaseHash(testCaseHash); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemResultsRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemResultsRecord.java index 5297893c0..c5ee094fb 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemResultsRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTestItemResultsRecord.java @@ -9,29 +9,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JTestItemResultsRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = 1623310881; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JTestItemResultsRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.test_item_results.result_id. @@ -98,113 +86,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JTestItemResults.TEST_ITEM_RESULTS.RESULT_ID; - } - - @Override - public Field field2() { - return JTestItemResults.TEST_ITEM_RESULTS.STATUS; - } - - @Override - public Field field3() { - return JTestItemResults.TEST_ITEM_RESULTS.END_TIME; - } - - @Override - public Field field4() { - return JTestItemResults.TEST_ITEM_RESULTS.DURATION; - } - - @Override - public Long component1() { - return getResultId(); - } - - @Override - public JStatusEnum component2() { - return getStatus(); - } - - @Override - public Instant component3() { - return getEndTime(); - } - - @Override - public Double component4() { - return getDuration(); - } - - @Override - public Long value1() { - return getResultId(); - } - - @Override - public JStatusEnum value2() { - return getStatus(); - } - - @Override - public Instant value3() { - return getEndTime(); - } - - @Override - public Double value4() { - return getDuration(); - } - - @Override - public JTestItemResultsRecord value1(Long value) { - setResultId(value); - return this; - } - - @Override - public JTestItemResultsRecord value2(JStatusEnum value) { - setStatus(value); - return this; - } - - @Override - public JTestItemResultsRecord value3(Instant value) { - setEndTime(value); - return this; - } - - @Override - public JTestItemResultsRecord value4(Double value) { - setDuration(value); - return this; - } - - @Override - public JTestItemResultsRecord values(Long value1, JStatusEnum value2, Instant value3, Double value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -222,9 +103,10 @@ public JTestItemResultsRecord() { public JTestItemResultsRecord(Long resultId, JStatusEnum status, Instant endTime, Double duration) { super(JTestItemResults.TEST_ITEM_RESULTS); - set(0, resultId); - set(1, status); - set(2, endTime); - set(3, duration); + setResultId(resultId); + setStatus(status); + setEndTime(endTime); + setDuration(duration); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTicketRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTicketRecord.java index ee2e56b69..9903c9ee1 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTicketRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JTicketRecord.java @@ -8,29 +8,17 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record8; -import org.jooq.Row8; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JTicketRecord extends UpdatableRecordImpl implements Record8 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JTicketRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = -661473791; + private static final long serialVersionUID = 1L; /** * Setter for public.ticket.id. @@ -153,201 +141,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record8 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); - } - - @Override - public Row8 valuesRow() { - return (Row8) super.valuesRow(); - } - - @Override - public Field field1() { - return JTicket.TICKET.ID; - } - - @Override - public Field field2() { - return JTicket.TICKET.TICKET_ID; - } - - @Override - public Field field3() { - return JTicket.TICKET.SUBMITTER; - } - - @Override - public Field field4() { - return JTicket.TICKET.SUBMIT_DATE; - } - - @Override - public Field field5() { - return JTicket.TICKET.BTS_URL; - } - - @Override - public Field field6() { - return JTicket.TICKET.BTS_PROJECT; - } - - @Override - public Field field7() { - return JTicket.TICKET.URL; - } - - @Override - public Field field8() { - return JTicket.TICKET.PLUGIN_NAME; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getTicketId(); - } - - @Override - public String component3() { - return getSubmitter(); - } - - @Override - public Instant component4() { - return getSubmitDate(); - } - - @Override - public String component5() { - return getBtsUrl(); - } - - @Override - public String component6() { - return getBtsProject(); - } - - @Override - public String component7() { - return getUrl(); - } - - @Override - public String component8() { - return getPluginName(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getTicketId(); - } - - @Override - public String value3() { - return getSubmitter(); - } - - @Override - public Instant value4() { - return getSubmitDate(); - } - - @Override - public String value5() { - return getBtsUrl(); - } - - @Override - public String value6() { - return getBtsProject(); - } - - @Override - public String value7() { - return getUrl(); - } - - @Override - public String value8() { - return getPluginName(); - } - - @Override - public JTicketRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JTicketRecord value2(String value) { - setTicketId(value); - return this; - } - - @Override - public JTicketRecord value3(String value) { - setSubmitter(value); - return this; - } - - @Override - public JTicketRecord value4(Instant value) { - setSubmitDate(value); - return this; - } - - @Override - public JTicketRecord value5(String value) { - setBtsUrl(value); - return this; - } - - @Override - public JTicketRecord value6(String value) { - setBtsProject(value); - return this; - } - - @Override - public JTicketRecord value7(String value) { - setUrl(value); - return this; - } - - @Override - public JTicketRecord value8(String value) { - setPluginName(value); - return this; - } - - @Override - public JTicketRecord values(Long value1, String value2, String value3, Instant value4, String value5, String value6, String value7, String value8) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -365,13 +158,14 @@ public JTicketRecord() { public JTicketRecord(Long id, String ticketId, String submitter, Instant submitDate, String btsUrl, String btsProject, String url, String pluginName) { super(JTicket.TICKET); - set(0, id); - set(1, ticketId); - set(2, submitter); - set(3, submitDate); - set(4, btsUrl); - set(5, btsProject); - set(6, url); - set(7, pluginName); + setId(id); + setTicketId(ticketId); + setSubmitter(submitter); + setSubmitDate(submitDate); + setBtsUrl(btsUrl); + setBtsProject(btsProject); + setUrl(url); + setPluginName(pluginName); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserCreationBidRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserCreationBidRecord.java index c12dab998..79a1b6524 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserCreationBidRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserCreationBidRecord.java @@ -8,30 +8,18 @@ import java.time.Instant; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record7; -import org.jooq.Row7; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JUserCreationBidRecord extends UpdatableRecordImpl implements Record7 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JUserCreationBidRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 333422022; + private static final long serialVersionUID = 1L; /** * Setter for public.user_creation_bid.uuid. @@ -75,242 +63,69 @@ public String getEmail() { return (String) get(2); } - /** - * Setter for public.user_creation_bid.role. - */ - public void setRole(String value) { - set(3, value); - } - - /** - * Getter for public.user_creation_bid.role. - */ - public String getRole() { - return (String) get(3); - } - /** * Setter for public.user_creation_bid.inviting_user_id. */ public void setInvitingUserId(Long value) { - set(4, value); + set(3, value); } /** * Getter for public.user_creation_bid.inviting_user_id. */ public Long getInvitingUserId() { - return (Long) get(4); + return (Long) get(3); } /** * Setter for public.user_creation_bid.project_name. */ public void setProjectName(String value) { - set(5, value); + set(4, value); } /** * Getter for public.user_creation_bid.project_name. */ public String getProjectName() { - return (String) get(5); + return (String) get(4); } /** * Setter for public.user_creation_bid.metadata. */ public void setMetadata(JSONB value) { - set(6, value); + set(5, value); } /** * Getter for public.user_creation_bid.metadata. */ public JSONB getMetadata() { - return (JSONB) get(6); + return (JSONB) get(5); } - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- + /** + * Setter for public.user_creation_bid.role. + */ + public void setRole(String value) { + set(6, value); + } - @Override - public Record1 key() { - return (Record1) super.key(); + /** + * Getter for public.user_creation_bid.role. + */ + public String getRole() { + return (String) get(6); } // ------------------------------------------------------------------------- - // Record7 type implementation + // Primary key information // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); - } - - @Override - public Field field1() { - return JUserCreationBid.USER_CREATION_BID.UUID; - } - - @Override - public Field field2() { - return JUserCreationBid.USER_CREATION_BID.LAST_MODIFIED; - } - - @Override - public Field field3() { - return JUserCreationBid.USER_CREATION_BID.EMAIL; - } - - @Override - public Field field4() { - return JUserCreationBid.USER_CREATION_BID.ROLE; - } - - @Override - public Field field5() { - return JUserCreationBid.USER_CREATION_BID.INVITING_USER_ID; - } - - @Override - public Field field6() { - return JUserCreationBid.USER_CREATION_BID.PROJECT_NAME; - } - - @Override - public Field field7() { - return JUserCreationBid.USER_CREATION_BID.METADATA; - } - - @Override - public String component1() { - return getUuid(); - } - - @Override - public Instant component2() { - return getLastModified(); - } - - @Override - public String component3() { - return getEmail(); - } - - @Override - public String component4() { - return getRole(); - } - - @Override - public Long component5() { - return getInvitingUserId(); - } - - @Override - public String component6() { - return getProjectName(); - } - - @Override - public JSONB component7() { - return getMetadata(); - } - - @Override - public String value1() { - return getUuid(); - } - - @Override - public Instant value2() { - return getLastModified(); - } - - @Override - public String value3() { - return getEmail(); - } - - @Override - public String value4() { - return getRole(); - } - - @Override - public Long value5() { - return getInvitingUserId(); - } - - @Override - public String value6() { - return getProjectName(); - } - - @Override - public JSONB value7() { - return getMetadata(); - } - - @Override - public JUserCreationBidRecord value1(String value) { - setUuid(value); - return this; - } - - @Override - public JUserCreationBidRecord value2(Instant value) { - setLastModified(value); - return this; - } - - @Override - public JUserCreationBidRecord value3(String value) { - setEmail(value); - return this; - } - - @Override - public JUserCreationBidRecord value4(String value) { - setRole(value); - return this; - } - - @Override - public JUserCreationBidRecord value5(Long value) { - setInvitingUserId(value); - return this; - } - - @Override - public JUserCreationBidRecord value6(String value) { - setProjectName(value); - return this; - } - - @Override - public JUserCreationBidRecord value7(JSONB value) { - setMetadata(value); - return this; - } - - @Override - public JUserCreationBidRecord values(String value1, Instant value2, String value3, String value4, Long value5, String value6, JSONB value7) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - return this; + public Record1 key() { + return (Record1) super.key(); } // ------------------------------------------------------------------------- @@ -327,15 +142,16 @@ public JUserCreationBidRecord() { /** * Create a detached, initialised JUserCreationBidRecord */ - public JUserCreationBidRecord(String uuid, Instant lastModified, String email, String role, Long invitingUserId, String projectName, JSONB metadata) { + public JUserCreationBidRecord(String uuid, Instant lastModified, String email, Long invitingUserId, String projectName, JSONB metadata, String role) { super(JUserCreationBid.USER_CREATION_BID); - set(0, uuid); - set(1, lastModified); - set(2, email); - set(3, role); - set(4, invitingUserId); - set(5, projectName); - set(6, metadata); + setUuid(uuid); + setLastModified(lastModified); + setEmail(email); + setInvitingUserId(invitingUserId); + setProjectName(projectName); + setMetadata(metadata); + setRole(role); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserPreferenceRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserPreferenceRecord.java index ea8b61038..43151fbb5 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserPreferenceRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUserPreferenceRecord.java @@ -6,29 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JUserPreference; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JUserPreferenceRecord extends UpdatableRecordImpl implements Record4 { - - private static final long serialVersionUID = 1708369277; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JUserPreferenceRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.user_preference.id. @@ -95,113 +83,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return JUserPreference.USER_PREFERENCE.ID; - } - - @Override - public Field field2() { - return JUserPreference.USER_PREFERENCE.PROJECT_ID; - } - - @Override - public Field field3() { - return JUserPreference.USER_PREFERENCE.USER_ID; - } - - @Override - public Field field4() { - return JUserPreference.USER_PREFERENCE.FILTER_ID; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public Long component2() { - return getProjectId(); - } - - @Override - public Long component3() { - return getUserId(); - } - - @Override - public Long component4() { - return getFilterId(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public Long value2() { - return getProjectId(); - } - - @Override - public Long value3() { - return getUserId(); - } - - @Override - public Long value4() { - return getFilterId(); - } - - @Override - public JUserPreferenceRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JUserPreferenceRecord value2(Long value) { - setProjectId(value); - return this; - } - - @Override - public JUserPreferenceRecord value3(Long value) { - setUserId(value); - return this; - } - - @Override - public JUserPreferenceRecord value4(Long value) { - setFilterId(value); - return this; - } - - @Override - public JUserPreferenceRecord values(Long value1, Long value2, Long value3, Long value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -219,9 +100,10 @@ public JUserPreferenceRecord() { public JUserPreferenceRecord(Long id, Long projectId, Long userId, Long filterId) { super(JUserPreference.USER_PREFERENCE); - set(0, id); - set(1, projectId); - set(2, userId); - set(3, filterId); + setId(id); + setProjectId(projectId); + setUserId(userId); + setFilterId(filterId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUsersRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUsersRecord.java index 67c72573c..72ee02bf4 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUsersRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JUsersRecord.java @@ -8,30 +8,18 @@ import java.util.UUID; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record14; -import org.jooq.Row14; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JUsersRecord extends UpdatableRecordImpl implements Record14 { - - private static final long serialVersionUID = -549002462; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JUsersRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.users.id. @@ -238,333 +226,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record14 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row14 fieldsRow() { - return (Row14) super.fieldsRow(); - } - - @Override - public Row14 valuesRow() { - return (Row14) super.valuesRow(); - } - - @Override - public Field field1() { - return JUsers.USERS.ID; - } - - @Override - public Field field2() { - return JUsers.USERS.LOGIN; - } - - @Override - public Field field3() { - return JUsers.USERS.PASSWORD; - } - - @Override - public Field field4() { - return JUsers.USERS.EMAIL; - } - - @Override - public Field field5() { - return JUsers.USERS.ATTACHMENT; - } - - @Override - public Field field6() { - return JUsers.USERS.ATTACHMENT_THUMBNAIL; - } - - @Override - public Field field7() { - return JUsers.USERS.ROLE; - } - - @Override - public Field field8() { - return JUsers.USERS.TYPE; - } - - @Override - public Field field9() { - return JUsers.USERS.EXPIRED; - } - - @Override - public Field field10() { - return JUsers.USERS.FULL_NAME; - } - - @Override - public Field field11() { - return JUsers.USERS.METADATA; - } - - @Override - public Field field12() { - return JUsers.USERS.UUID; - } - - @Override - public Field field13() { - return JUsers.USERS.EXTERNAL_ID; - } - - @Override - public Field field14() { - return JUsers.USERS.ACTIVE; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getLogin(); - } - - @Override - public String component3() { - return getPassword(); - } - - @Override - public String component4() { - return getEmail(); - } - - @Override - public String component5() { - return getAttachment(); - } - - @Override - public String component6() { - return getAttachmentThumbnail(); - } - - @Override - public String component7() { - return getRole(); - } - - @Override - public String component8() { - return getType(); - } - - @Override - public Boolean component9() { - return getExpired(); - } - - @Override - public String component10() { - return getFullName(); - } - - @Override - public JSONB component11() { - return getMetadata(); - } - - @Override - public UUID component12() { - return getUuid(); - } - - @Override - public String component13() { - return getExternalId(); - } - - @Override - public Boolean component14() { - return getActive(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getLogin(); - } - - @Override - public String value3() { - return getPassword(); - } - - @Override - public String value4() { - return getEmail(); - } - - @Override - public String value5() { - return getAttachment(); - } - - @Override - public String value6() { - return getAttachmentThumbnail(); - } - - @Override - public String value7() { - return getRole(); - } - - @Override - public String value8() { - return getType(); - } - - @Override - public Boolean value9() { - return getExpired(); - } - - @Override - public String value10() { - return getFullName(); - } - - @Override - public JSONB value11() { - return getMetadata(); - } - - @Override - public UUID value12() { - return getUuid(); - } - - @Override - public String value13() { - return getExternalId(); - } - - @Override - public Boolean value14() { - return getActive(); - } - - @Override - public JUsersRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JUsersRecord value2(String value) { - setLogin(value); - return this; - } - - @Override - public JUsersRecord value3(String value) { - setPassword(value); - return this; - } - - @Override - public JUsersRecord value4(String value) { - setEmail(value); - return this; - } - - @Override - public JUsersRecord value5(String value) { - setAttachment(value); - return this; - } - - @Override - public JUsersRecord value6(String value) { - setAttachmentThumbnail(value); - return this; - } - - @Override - public JUsersRecord value7(String value) { - setRole(value); - return this; - } - - @Override - public JUsersRecord value8(String value) { - setType(value); - return this; - } - - @Override - public JUsersRecord value9(Boolean value) { - setExpired(value); - return this; - } - - @Override - public JUsersRecord value10(String value) { - setFullName(value); - return this; - } - - @Override - public JUsersRecord value11(JSONB value) { - setMetadata(value); - return this; - } - - @Override - public JUsersRecord value12(UUID value) { - setUuid(value); - return this; - } - - @Override - public JUsersRecord value13(String value) { - setExternalId(value); - return this; - } - - @Override - public JUsersRecord value14(Boolean value) { - setActive(value); - return this; - } - - @Override - public JUsersRecord values(Long value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, Boolean value9, String value10, JSONB value11, UUID value12, String value13, Boolean value14) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - value14(value14); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -582,19 +243,20 @@ public JUsersRecord() { public JUsersRecord(Long id, String login, String password, String email, String attachment, String attachmentThumbnail, String role, String type, Boolean expired, String fullName, JSONB metadata, UUID uuid, String externalId, Boolean active) { super(JUsers.USERS); - set(0, id); - set(1, login); - set(2, password); - set(3, email); - set(4, attachment); - set(5, attachmentThumbnail); - set(6, role); - set(7, type); - set(8, expired); - set(9, fullName); - set(10, metadata); - set(11, uuid); - set(12, externalId); - set(13, active); + setId(id); + setLogin(login); + setPassword(password); + setEmail(email); + setAttachment(attachment); + setAttachmentThumbnail(attachmentThumbnail); + setRole(role); + setType(type); + setExpired(expired); + setFullName(fullName); + setMetadata(metadata); + setUuid(uuid); + setExternalId(externalId); + setActive(active); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetFilterRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetFilterRecord.java index e4f6db2ab..b6000e065 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetFilterRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetFilterRecord.java @@ -6,28 +6,17 @@ import com.epam.ta.reportportal.jooq.tables.JWidgetFilter; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JWidgetFilterRecord extends UpdatableRecordImpl implements Record2 { - - private static final long serialVersionUID = 618192211; +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JWidgetFilterRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; /** * Setter for public.widget_filter.widget_id. @@ -66,69 +55,6 @@ public Record2 key() { return (Record2) super.key(); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return JWidgetFilter.WIDGET_FILTER.WIDGET_ID; - } - - @Override - public Field field2() { - return JWidgetFilter.WIDGET_FILTER.FILTER_ID; - } - - @Override - public Long component1() { - return getWidgetId(); - } - - @Override - public Long component2() { - return getFilterId(); - } - - @Override - public Long value1() { - return getWidgetId(); - } - - @Override - public Long value2() { - return getFilterId(); - } - - @Override - public JWidgetFilterRecord value1(Long value) { - setWidgetId(value); - return this; - } - - @Override - public JWidgetFilterRecord value2(Long value) { - setFilterId(value); - return this; - } - - @Override - public JWidgetFilterRecord values(Long value1, Long value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -146,7 +72,8 @@ public JWidgetFilterRecord() { public JWidgetFilterRecord(Long widgetId, Long filterId) { super(JWidgetFilter.WIDGET_FILTER); - set(0, widgetId); - set(1, filterId); + setWidgetId(widgetId); + setFilterId(filterId); + resetChangedOnNotNull(); } } diff --git a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetRecord.java b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetRecord.java index c582c2f56..d5eabe9ca 100644 --- a/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetRecord.java +++ b/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JWidgetRecord.java @@ -6,30 +6,18 @@ import com.epam.ta.reportportal.jooq.tables.JWidget; -import javax.annotation.processing.Generated; - -import org.jooq.Field; import org.jooq.JSONB; import org.jooq.Record1; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ -@Generated( - value = { - "http://www.jooq.org", - "jOOQ version:3.12.4" - }, - comments = "This class is generated by jOOQ" -) -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class JWidgetRecord extends UpdatableRecordImpl implements Record6 { +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class JWidgetRecord extends UpdatableRecordImpl { - private static final long serialVersionUID = 716998638; + private static final long serialVersionUID = 1L; /** * Setter for public.widget.id. @@ -124,157 +112,6 @@ public Record1 key() { return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return JWidget.WIDGET.ID; - } - - @Override - public Field field2() { - return JWidget.WIDGET.NAME; - } - - @Override - public Field field3() { - return JWidget.WIDGET.DESCRIPTION; - } - - @Override - public Field field4() { - return JWidget.WIDGET.WIDGET_TYPE; - } - - @Override - public Field field5() { - return JWidget.WIDGET.ITEMS_COUNT; - } - - @Override - public Field field6() { - return JWidget.WIDGET.WIDGET_OPTIONS; - } - - @Override - public Long component1() { - return getId(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getDescription(); - } - - @Override - public String component4() { - return getWidgetType(); - } - - @Override - public Short component5() { - return getItemsCount(); - } - - @Override - public JSONB component6() { - return getWidgetOptions(); - } - - @Override - public Long value1() { - return getId(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getDescription(); - } - - @Override - public String value4() { - return getWidgetType(); - } - - @Override - public Short value5() { - return getItemsCount(); - } - - @Override - public JSONB value6() { - return getWidgetOptions(); - } - - @Override - public JWidgetRecord value1(Long value) { - setId(value); - return this; - } - - @Override - public JWidgetRecord value2(String value) { - setName(value); - return this; - } - - @Override - public JWidgetRecord value3(String value) { - setDescription(value); - return this; - } - - @Override - public JWidgetRecord value4(String value) { - setWidgetType(value); - return this; - } - - @Override - public JWidgetRecord value5(Short value) { - setItemsCount(value); - return this; - } - - @Override - public JWidgetRecord value6(JSONB value) { - setWidgetOptions(value); - return this; - } - - @Override - public JWidgetRecord values(Long value1, String value2, String value3, String value4, Short value5, JSONB value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -292,11 +129,12 @@ public JWidgetRecord() { public JWidgetRecord(Long id, String name, String description, String widgetType, Short itemsCount, JSONB widgetOptions) { super(JWidget.WIDGET); - set(0, id); - set(1, name); - set(2, description); - set(3, widgetType); - set(4, itemsCount); - set(5, widgetOptions); + setId(id); + setName(name); + setDescription(description); + setWidgetType(widgetType); + setItemsCount(itemsCount); + setWidgetOptions(widgetOptions); + resetChangedOnNotNull(); } } diff --git a/src/test/java/com/epam/ta/reportportal/BaseTest.java b/src/test/java/com/epam/ta/reportportal/BaseTest.java index fcc62c717..9c99872c3 100644 --- a/src/test/java/com/epam/ta/reportportal/BaseTest.java +++ b/src/test/java/com/epam/ta/reportportal/BaseTest.java @@ -22,26 +22,29 @@ import org.flywaydb.test.FlywayTestExecutionListener; import org.flywaydb.test.annotation.FlywayTest; import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.extension.ExtendWith; +import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestExecutionListeners; -import org.springframework.test.context.junit.jupiter.SpringExtension; +import org.springframework.test.context.TestPropertySource; import org.springframework.transaction.annotation.Transactional; /** * @author Pavel Bortnik */ -@ExtendWith(SpringExtension.class) +@SpringBootTest +@FlywayTest @ContextConfiguration(classes = {DataSourceConfig.class, DatabaseConfiguration.class, - TestConfiguration.class}) + TestConfiguration.class +}) @Transactional @ActiveProfiles("unittest") @TestExecutionListeners(listeners = { FlywayTestExecutionListener.class}, mergeMode = TestExecutionListeners.MergeMode.MERGE_WITH_DEFAULTS) +@TestPropertySource(locations="classpath:application.yml") public abstract class BaseTest { - @FlywayTest + @FlywayTest(invokeCleanDB = false) @BeforeAll static void setUp() { } diff --git a/src/test/java/com/epam/ta/reportportal/binary/impl/CommonDataStoreServiceTest.java b/src/test/java/com/epam/ta/reportportal/binary/impl/CommonDataStoreServiceTest.java index a6cafb7db..d68758c5e 100644 --- a/src/test/java/com/epam/ta/reportportal/binary/impl/CommonDataStoreServiceTest.java +++ b/src/test/java/com/epam/ta/reportportal/binary/impl/CommonDataStoreServiceTest.java @@ -32,17 +32,14 @@ import java.nio.file.Paths; import java.util.Optional; import java.util.Random; -import org.apache.commons.fileupload.FileItem; -import org.apache.commons.fileupload.disk.DiskFileItem; import org.apache.commons.io.IOUtils; import org.junit.jupiter.api.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.ClassPathResource; -import org.springframework.web.multipart.commons.CommonsMultipartFile; +import org.springframework.mock.web.MockMultipartFile; +import org.springframework.web.multipart.MultipartFile; /** * @author Ihar Kahadouski @@ -73,7 +70,7 @@ private String getModifiedPath(String originalPath) { @Test void saveTest() throws IOException { - CommonsMultipartFile multipartFile = getMultipartFile("meh.jpg"); + MultipartFile multipartFile = getMultipartFile("meh.jpg"); String fileId = dataStoreService.save(BUCKET_NAME + File.separator + multipartFile.getOriginalFilename(), multipartFile.getInputStream() @@ -87,7 +84,7 @@ void saveTest() throws IOException { @Test void saveThumbnailTest() throws IOException { - CommonsMultipartFile multipartFile = getMultipartFile("meh.jpg"); + MultipartFile multipartFile = getMultipartFile("meh.jpg"); String fileId = dataStoreService.saveThumbnail( BUCKET_NAME + File.separator + multipartFile.getOriginalFilename(), multipartFile.getInputStream() @@ -101,7 +98,7 @@ void saveThumbnailTest() throws IOException { @Test void saveAndLoadTest() throws IOException { - CommonsMultipartFile multipartFile = getMultipartFile("meh.jpg"); + MultipartFile multipartFile = getMultipartFile("meh.jpg"); String fileId = dataStoreService.saveThumbnail(BUCKET_NAME + "/" + multipartFile.getOriginalFilename(), multipartFile.getInputStream() @@ -115,7 +112,7 @@ void saveAndLoadTest() throws IOException { @Test void saveAndDeleteTest() throws IOException { - CommonsMultipartFile multipartFile = getMultipartFile("meh.jpg"); + MultipartFile multipartFile = getMultipartFile("meh.jpg"); Random random = new Random(); String fileId = dataStoreService.save( BUCKET_NAME + "/" + random.nextLong() + "/" + multipartFile.getOriginalFilename(), @@ -127,13 +124,9 @@ void saveAndDeleteTest() throws IOException { assertFalse(Files.exists(Paths.get(dataEncoder.decode(getModifiedPath(fileId))))); } - public static CommonsMultipartFile getMultipartFile(String path) throws IOException { + public static MultipartFile getMultipartFile(String path) throws IOException { File file = new ClassPathResource(path).getFile(); - FileItem fileItem = - new DiskFileItem("mainFile", Files.probeContentType(file.toPath()), false, file.getName(), - (int) file.length(), file.getParentFile() - ); - IOUtils.copy(new FileInputStream(file), fileItem.getOutputStream()); - return new CommonsMultipartFile(fileItem); + + return new MockMultipartFile(path, new FileInputStream(file)); } -} \ No newline at end of file +} diff --git a/src/test/java/com/epam/ta/reportportal/binary/impl/UserCommonDataStoreServiceTest.java b/src/test/java/com/epam/ta/reportportal/binary/impl/UserCommonDataStoreServiceTest.java index c7940319f..43c1a34e8 100644 --- a/src/test/java/com/epam/ta/reportportal/binary/impl/UserCommonDataStoreServiceTest.java +++ b/src/test/java/com/epam/ta/reportportal/binary/impl/UserCommonDataStoreServiceTest.java @@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.web.multipart.commons.CommonsMultipartFile; +import org.springframework.web.multipart.MultipartFile; /** * @author Pavel Bortnik @@ -49,7 +49,7 @@ class UserCommonDataStoreServiceTest extends BaseTest { @Test void saveUserPhoto() throws IOException { - CommonsMultipartFile multipartFile = getMultipartFile("meh.jpg"); + MultipartFile multipartFile = getMultipartFile("meh.jpg"); User user = userRepository.findByLogin("default").get(); userDataStoreService.saveUserPhoto(user, multipartFile); @@ -65,4 +65,4 @@ void saveUserPhoto() throws IOException { )).isTrue(); } -} \ No newline at end of file +} diff --git a/src/test/java/com/epam/ta/reportportal/config/TestConfiguration.java b/src/test/java/com/epam/ta/reportportal/config/TestConfiguration.java index 92b25bb02..2aa4221c2 100644 --- a/src/test/java/com/epam/ta/reportportal/config/TestConfiguration.java +++ b/src/test/java/com/epam/ta/reportportal/config/TestConfiguration.java @@ -16,21 +16,13 @@ package com.epam.ta.reportportal.config; -import com.epam.reportportal.commons.ContentTypeResolver; -import com.epam.reportportal.commons.Thumbnailator; -import com.epam.reportportal.commons.ThumbnailatorImpl; -import com.epam.reportportal.commons.TikaContentTypeResolver; import com.epam.ta.reportportal.filesystem.DataEncoder; import com.epam.ta.reportportal.util.FeatureFlagHandler; -import com.github.benmanes.caffeine.cache.Caffeine; import java.util.Set; -import java.util.concurrent.TimeUnit; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration; import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.cache.CacheManager; -import org.springframework.cache.caffeine.CaffeineCacheManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @@ -40,48 +32,19 @@ @EnableConfigurationProperties @EnableAutoConfiguration(exclude = QuartzAutoConfiguration.class) @ComponentScan(basePackages = "com.epam.ta.reportportal") -@PropertySource({ "classpath:test-application.properties" }) +@PropertySource({"classpath:application.yml"}) public class TestConfiguration { - @Bean("attachmentThumbnailator") - public Thumbnailator attachmentThumbnailator( - @Value("${datastore.thumbnail.attachment.width}") int width, - @Value("${datastore.thumbnail.attachment.height}") int height) { - return new ThumbnailatorImpl(width, height); - } - - @Bean("userPhotoThumbnailator") - public Thumbnailator userPhotoThumbnailator( - @Value("${datastore.thumbnail.avatar.width}") int width, - @Value("${datastore.thumbnail.avatar.height}") int height) { - return new ThumbnailatorImpl(width, height); - } - @Bean public FeatureFlagHandler featureFlagHandler( @Value("#{'${rp.feature.flags}'.split(',')}") Set featureFlagsSet) { return new FeatureFlagHandler(featureFlagsSet); } - @Bean - public ContentTypeResolver contentTypeResolver() { - return new TikaContentTypeResolver(); - } - @Bean public DataEncoder dataEncoder() { return new DataEncoder(); } - @Bean(name = "caffeineCacheManager") - public CacheManager cacheManager() { - CaffeineCacheManager cacheManager = new CaffeineCacheManager(); - cacheManager.setCaffeine(cacheProperties()); - return cacheManager; - } - - private Caffeine cacheProperties() { - return Caffeine.newBuilder().expireAfterWrite(1, TimeUnit.MINUTES); - } } diff --git a/src/test/java/com/epam/ta/reportportal/dao/PatternTemplateRepositoryTest.java b/src/test/java/com/epam/ta/reportportal/dao/PatternTemplateRepositoryTest.java index f7de29dec..22255e55e 100644 --- a/src/test/java/com/epam/ta/reportportal/dao/PatternTemplateRepositoryTest.java +++ b/src/test/java/com/epam/ta/reportportal/dao/PatternTemplateRepositoryTest.java @@ -22,7 +22,7 @@ import com.epam.ta.reportportal.entity.pattern.PatternTemplate; import java.util.List; import java.util.Optional; -import javax.persistence.PersistenceException; +import jakarta.persistence.PersistenceException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -83,4 +83,4 @@ void validateWrongRegex() { assertThrows(PersistenceException.class, () -> patternTemplateRepository.validateRegex("{1,}")); } -} \ No newline at end of file +} diff --git a/src/test/java/com/epam/ta/reportportal/entity/enums/converter/AttributeConverterTest.java b/src/test/java/com/epam/ta/reportportal/entity/enums/converter/AttributeConverterTest.java index f35880b18..542efd98e 100644 --- a/src/test/java/com/epam/ta/reportportal/entity/enums/converter/AttributeConverterTest.java +++ b/src/test/java/com/epam/ta/reportportal/entity/enums/converter/AttributeConverterTest.java @@ -22,7 +22,7 @@ import com.epam.reportportal.rules.exception.ReportPortalException; import java.util.List; import java.util.Map; -import javax.persistence.AttributeConverter; +import jakarta.persistence.AttributeConverter; import org.junit.jupiter.api.Test; /** diff --git a/src/test/java/com/epam/ta/reportportal/entity/project/ProjectUtilsTest.java b/src/test/java/com/epam/ta/reportportal/entity/project/ProjectUtilsTest.java index 2ffced379..1f5b5bec9 100644 --- a/src/test/java/com/epam/ta/reportportal/entity/project/ProjectUtilsTest.java +++ b/src/test/java/com/epam/ta/reportportal/entity/project/ProjectUtilsTest.java @@ -77,11 +77,11 @@ private static List getDefaultIssueTypes() { IssueGroup siGroup = new IssueGroup(); siGroup.setId(5); siGroup.setTestItemIssueGroup(TestItemIssueGroup.SYSTEM_ISSUE); - return Arrays.asList(new IssueType(tiGroup, "ti001", "To Investigate", "TI", "#ffb743"), - new IssueType(abGroup, "ab001", "Automation Bug", "AB", "#f7d63e"), - new IssueType(pbGroup, "pb001", "Product Bug", "PB", "#ec3900"), - new IssueType(ndGroup, "nd001", "No Defect", "ND", "#777777"), - new IssueType(siGroup, "si001", "System Issue", "SI", "#0274d1") + return Arrays.asList(new IssueType(901L, tiGroup, "ti001", "To Investigate", "TI", "#ffb743"), + new IssueType(902L, abGroup, "ab001", "Automation Bug", "AB", "#f7d63e"), + new IssueType(903L, pbGroup, "pb001", "Product Bug", "PB", "#ec3900"), + new IssueType(904L, ndGroup, "nd001", "No Defect", "ND", "#777777"), + new IssueType(905L, siGroup, "si001", "System Issue", "SI", "#0274d1") ); } diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml new file mode 100644 index 000000000..93b5a8874 --- /dev/null +++ b/src/test/resources/application.yml @@ -0,0 +1,37 @@ +embedded: + datasource: + dir: ${java.io.tmpdir}/reportportal/embedded-postgres + clean: true + port: 0 + +rp: + binarystore: + path: ${java.io.tmpdir}/reportportal/datastore + feature: + flags: "" + +datastore: + path: ${rp.binarystore.path:/data/storage} + bucketPrefix: prj- + defaultBucketName: rp-bucket + bucketPostfix: "" + seaweed: + master: + host: ${rp.binarystore.master.host:localhost} + port: ${rp.binarystore.master.port:9333} + s3: + endpoint: ${rp.binarystore.s3.endpoint:https://play.min.io} + accessKey: ${rp.binarystore.s3.accessKey:Q3AM3UQ867SPQQA43P2F} + secretKey: ${rp.binarystore.s3.secretKey:zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG} + type: filesystem + thumbnail: + attachment: + width: ${rp.binarystore.thumbnail.attachment.width:100} + height: ${rp.binarystore.thumbnail.attachment.height:55} + avatar: + width: ${rp.binarystore.thumbnail.avatar.width:40} + height: ${rp.binarystore.thumbnail.avatar.height:50} + +spring: + flyway: + clean-disabled: false diff --git a/src/test/resources/test-application.properties b/src/test/resources/test-application.properties deleted file mode 100644 index 74875f2bc..000000000 --- a/src/test/resources/test-application.properties +++ /dev/null @@ -1,36 +0,0 @@ -# -# Copyright 2019 EPAM Systems -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -embedded.datasource.dir=${java.io.tmpdir}/reportportal/embedded-postgres -embedded.datasource.clean=true -embedded.datasource.port=0 -rp.binarystore.path=${java.io.tmpdir}/reportportal/datastore -rp.feature.flags= - -datastore.path=${rp.binarystore.path:/data/storage} -datastore.bucketPrefix=prj- -datastore.defaultBucketName=rp-bucket -datastore.bucketPostfix= -datastore.seaweed.master.host=${rp.binarystore.master.host:localhost} -datastore.seaweed.master.port=${rp.binarystore.master.port:9333} -datastore.s3.endpoint=${rp.binarystore.s3.endpoint:https://play.min.io} -datastore.s3.accessKey=${rp.binarystore.s3.accessKey:Q3AM3UQ867SPQQA43P2F} -datastore.s3.secretKey=${rp.binarystore.s3.secretKey:zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG} -# could be one of [seaweed, filesystem, s3] -datastore.type=filesystem -datastore.thumbnail.attachment.width=${rp.binarystore.thumbnail.attachment.width:100} -datastore.thumbnail.attachment.height=${rp.binarystore.thumbnail.attachment.height:55} -datastore.thumbnail.avatar.width=${rp.binarystore.thumbnail.avatar.width:40} -datastore.thumbnail.avatar.height=${rp.binarystore.thumbnail.avatar.height:50} \ No newline at end of file From fc6aff8b4c104814e0f88ab26c35aeceef996cd5 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Mon, 21 Oct 2024 12:03:04 +0300 Subject: [PATCH 2/7] EPMRPP-93641 github actions updated --- .github/workflows/build.yml | 4 ++-- .github/workflows/manually-release.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a508772bc..e89896ff7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,11 +18,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '11' + java-version: '21' - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/.github/workflows/manually-release.yml b/.github/workflows/manually-release.yml index 3049e696c..1d645d983 100644 --- a/.github/workflows/manually-release.yml +++ b/.github/workflows/manually-release.yml @@ -31,11 +31,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '11' + java-version: '21' - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad723c672..3011bb00d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,11 +23,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '11' + java-version: '21' - name: Grant execute permission for gradlew run: chmod +x gradlew From 0e5bbd43faac9e55828846151a2df27ed61f4bc3 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Mon, 21 Oct 2024 15:43:50 +0300 Subject: [PATCH 3/7] EPMRPP-93641 expose common dependencies --- build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 6d5ac4fad..5ce2e95a3 100644 --- a/build.gradle +++ b/build.gradle @@ -55,14 +55,16 @@ dependencies { implementation 'org.springframework:spring-webmvc' implementation 'org.apache.tika:tika-core' - implementation('org.springframework.boot:spring-boot-starter-data-jpa') { + api('org.springframework.boot:spring-boot-starter-data-jpa') { exclude group: 'org.hibernate', module: 'hibernate-core' } + implementation 'org.springframework.boot:spring-boot-starter-cache' + implementation 'com.github.ben-manes.caffeine:caffeine' implementation 'io.minio:minio:8.5.12' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' - implementation 'org.hibernate.validator:hibernate-validator' + api 'org.hibernate.validator:hibernate-validator' implementation 'org.apache.commons:commons-collections4:4.4' implementation 'commons-fileupload:commons-fileupload:1.5' // get rid of unnecessary dep. use spring multipart instead @@ -72,22 +74,20 @@ dependencies { implementation 'org.jasypt:jasypt:1.9.3' - implementation 'io.zonky.test:embedded-postgres:2.0.7' + api 'io.zonky.test:embedded-postgres:2.0.7' implementation 'org.apache.commons:commons-compress:1.26.1' implementation 'org.flywaydb:flyway-core:10.15.2' implementation "org.apache.jclouds.api:s3:${jcloudsVersion}" implementation "org.apache.jclouds.provider:aws-s3:${jcloudsVersion}" implementation "org.apache.jclouds.api:filesystem:${jcloudsVersion}" - implementation 'com.google.guava:guava:33.2.1-jre' + api 'com.google.guava:guava:33.2.1-jre' // add lombok support compileOnly "org.projectlombok:lombok:${lombokVersion}" annotationProcessor "org.projectlombok:lombok:${lombokVersion}" testCompileOnly "org.projectlombok:lombok:${lombokVersion}" testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}" - implementation 'org.springframework.boot:spring-boot-starter-cache' - implementation 'com.github.ben-manes.caffeine:caffeine' testImplementation 'org.springframework.boot:spring-boot-starter-test' implementation 'org.flywaydb:flyway-database-postgresql:10.20.0' From 37acab0fead55d8493898077710ba679797de68b Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Mon, 21 Oct 2024 17:12:24 +0300 Subject: [PATCH 4/7] EPMRPP-93641 hibernate validator 6.2 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 5ce2e95a3..bf626ea91 100644 --- a/build.gradle +++ b/build.gradle @@ -64,7 +64,7 @@ dependencies { implementation 'io.minio:minio:8.5.12' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' - api 'org.hibernate.validator:hibernate-validator' + api 'org.hibernate.validator:hibernate-validator:6.2.5.Final' implementation 'org.apache.commons:commons-collections4:4.4' implementation 'commons-fileupload:commons-fileupload:1.5' // get rid of unnecessary dep. use spring multipart instead From e408eabb69e06d589e6582023f666ad235e025e8 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Mon, 21 Oct 2024 17:43:17 +0300 Subject: [PATCH 5/7] EPMRPP-93641 fix CVE --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index bf626ea91..abc352dd5 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,7 @@ dependencies { implementation 'com.github.ben-manes.caffeine:caffeine' implementation 'io.minio:minio:8.5.12' + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22'; // fix CVE-2020-29582 in minio 8.5.12 implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' api 'org.hibernate.validator:hibernate-validator:6.2.5.Final' From 653ca3fad0453b34968aca462a8a2b11437bf31b Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Mon, 21 Oct 2024 17:54:35 +0300 Subject: [PATCH 6/7] EPMRPP-93641 fix CVE --- build.gradle | 1 - 1 file changed, 1 deletion(-) diff --git a/build.gradle b/build.gradle index abc352dd5..bf626ea91 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,6 @@ dependencies { implementation 'com.github.ben-manes.caffeine:caffeine' implementation 'io.minio:minio:8.5.12' - implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22'; // fix CVE-2020-29582 in minio 8.5.12 implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' api 'org.hibernate.validator:hibernate-validator:6.2.5.Final' From 0a6fc3f1780beb080906505873ded8cc725bcbaf Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Thu, 24 Oct 2024 15:06:15 +0300 Subject: [PATCH 7/7] kotlin fix --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index bf626ea91..2b22f0ba8 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,11 @@ dependencies { implementation 'com.github.ben-manes.caffeine:caffeine' implementation 'io.minio:minio:8.5.12' + // CVE-2020-29582 in minio. override with latest kotlin dependencies + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.21' + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.0.21' + implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.0.21' + implementation 'org.jetbrains.kotlin:kotlin-stdlib-common:2.0.21' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' api 'org.hibernate.validator:hibernate-validator:6.2.5.Final'