diff --git a/README.md b/README.md index 629202b..068b3d9 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,17 @@ make generate-jooq ./gradlew :generated:jooqCodegen ``` +The generator writes JSpecify nullability annotations into the generated sources, so NullAway reads the real nullness of every generated method instead of guessing. +Two consequences are worth knowing: + +- jOOQ does not officially support the `TYPE_USE` positioning that JSpecify requires yet ([jOOQ/jOOQ#10759](https://github.com/jOOQ/jOOQ/issues/10759)). + The positioning is correct here only because the generated code uses no generics, collections, maps, arrays or forced types with inner + classes. + Keep the `includes` list free of such objects, or review the annotation positions after a regeneration. +- Every generated class carries `@SuppressWarnings({"all", ...})`, which Error Prone honours. + That suppression, and nothing else, is why the generated sources are exempt from the checks in `errorprone.args`, including `RequireExplicitNullMarking`. + Do not add `NullAway:TreatGeneratedAsUnannotated`: it would make NullAway discard the nullability annotations that this generator now writes. + ### Docker Environment See [Docker Environment](docs/docker-environment.md) for setting up a local development environment using Quarkus Dev Services. diff --git a/errorprone.args b/errorprone.args index 00cf495..d4b7241 100644 --- a/errorprone.args +++ b/errorprone.args @@ -13,7 +13,12 @@ # Nullness -Xep:NullAway:ERROR +-XepOpt:NullAway:AcknowledgeRestrictiveAnnotations=true -XepOpt:NullAway:AnnotatedPackages=it.aboutbits.postgresql +-XepOpt:NullAway:CheckOptionalEmptiness=true +# ExhaustiveOverride is safe only while MissingOverride runs at ERROR, because it assumes that every overriding method carries the Override annotation. +-XepOpt:NullAway:ExhaustiveOverride=true +-XepOpt:NullAway:HandleTestAssertionLibraries=true -XepOpt:NullAway:JSpecifyMode=true -Xep:AnnotationPosition:ERROR -Xep:EqualsMissingNullable:ERROR diff --git a/generated/build.gradle.kts b/generated/build.gradle.kts index 9642969..f64c3d7 100644 --- a/generated/build.gradle.kts +++ b/generated/build.gradle.kts @@ -9,6 +9,7 @@ dependencies { */ api(libs.jooq) compileOnly(libs.jooqMeta) + compileOnlyApi(libs.jspecify) // PostgreSQL JDBC Driver for jOOQ generation jooqCodegen(libs.postgresql) } @@ -49,6 +50,14 @@ jooq { fluentSetters = true generatedAnnotation = true pojos = false + nonnullAnnotation = true + nullableAnnotation = true + // We use JSpecify annotations already even though jOOQ does not officially support JSpecify's TYPE_USE positioning yet. + // See https://github.com/jOOQ/jOOQ/issues/10759 + // This only works as our generated code is not using any generics, collections, maps, arrays + // or forced types with inner classes, and therefore the positioning of the annotations is accidentally correct. + nonnullAnnotationType = "org.jspecify.annotations.NonNull" + nullableAnnotationType = "org.jspecify.annotations.Nullable" } target { packageName = "it.aboutbits.postgresql.core.infrastructure.persistence" diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/DefaultCatalog.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/DefaultCatalog.java index ce19bd8..5d3af66 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/DefaultCatalog.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/DefaultCatalog.java @@ -12,6 +12,7 @@ import org.jooq.Constants; import org.jooq.Schema; import org.jooq.impl.CatalogImpl; +import org.jspecify.annotations.NonNull; /** @@ -47,6 +48,7 @@ private DefaultCatalog() { } @Override + @NonNull public final List getSchemas() { return Arrays.asList( PgCatalog.PG_CATALOG diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/PgCatalog.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/PgCatalog.java index c19c97a..c690676 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/PgCatalog.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/PgCatalog.java @@ -26,6 +26,7 @@ import org.jooq.Table; import org.jooq.impl.DSL; import org.jooq.impl.SchemaImpl; +import org.jspecify.annotations.NonNull; /** @@ -131,11 +132,13 @@ private PgCatalog() { @Override + @NonNull public Catalog getCatalog() { return DefaultCatalog.DEFAULT_CATALOG; } @Override + @NonNull public final List> getTables() { return Arrays.asList( Aclexplode.ACLEXPLODE, diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/Aclexplode.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/Aclexplode.java index 0ddbc3d..6bf4517 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/Aclexplode.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/Aclexplode.java @@ -19,6 +19,8 @@ import org.jooq.impl.DSL; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -45,6 +47,7 @@ public class Aclexplode extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return AclexplodeRecord.class; } @@ -105,21 +108,25 @@ public Aclexplode() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public Aclexplode as(String alias) { return new Aclexplode(DSL.name(alias), this, parameters); } @Override + @NonNull public Aclexplode as(Name alias) { return new Aclexplode(alias, this, parameters); } @Override + @NonNull public Aclexplode as(Table alias) { return new Aclexplode(alias.getQualifiedName(), this, parameters); } @@ -128,6 +135,7 @@ public Aclexplode as(Table alias) { * Rename this table */ @Override + @NonNull public Aclexplode rename(String name) { return new Aclexplode(DSL.name(name), null, parameters); } @@ -136,6 +144,7 @@ public Aclexplode rename(String name) { * Rename this table */ @Override + @NonNull public Aclexplode rename(Name name) { return new Aclexplode(name, null, parameters); } @@ -144,6 +153,7 @@ public Aclexplode rename(Name name) { * Rename this table */ @Override + @NonNull public Aclexplode rename(Table name) { return new Aclexplode(name.getQualifiedName(), null, parameters); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthMembers.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthMembers.java index 44e32b3..3d0afd3 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthMembers.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthMembers.java @@ -33,6 +33,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -59,6 +61,7 @@ public class PgAuthMembers extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgAuthMembersRecord.class; } @@ -128,36 +131,43 @@ public PgAuthMembers() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public List getIndexes() { return Arrays.asList(Indexes.PG_AUTH_MEMBERS_GRANTOR_INDEX); } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_AUTH_MEMBERS_OID_INDEX; } @Override + @NonNull public List> getUniqueKeys() { return Arrays.asList(Keys.PG_AUTH_MEMBERS_MEMBER_ROLE_INDEX, Keys.PG_AUTH_MEMBERS_ROLE_MEMBER_INDEX); } @Override + @NonNull public PgAuthMembers as(String alias) { return new PgAuthMembers(DSL.name(alias), this); } @Override + @NonNull public PgAuthMembers as(Name alias) { return new PgAuthMembers(alias, this); } @Override + @NonNull public PgAuthMembers as(Table alias) { return new PgAuthMembers(alias.getQualifiedName(), this); } @@ -166,6 +176,7 @@ public PgAuthMembers as(Table alias) { * Rename this table */ @Override + @NonNull public PgAuthMembers rename(String name) { return new PgAuthMembers(DSL.name(name), null); } @@ -174,6 +185,7 @@ public PgAuthMembers rename(String name) { * Rename this table */ @Override + @NonNull public PgAuthMembers rename(Name name) { return new PgAuthMembers(name, null); } @@ -182,6 +194,7 @@ public PgAuthMembers rename(Name name) { * Rename this table */ @Override + @NonNull public PgAuthMembers rename(Table name) { return new PgAuthMembers(name.getQualifiedName(), null); } @@ -190,6 +203,7 @@ public PgAuthMembers rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthMembers where(Condition condition) { return new PgAuthMembers(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -198,6 +212,7 @@ public PgAuthMembers where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthMembers where(Collection conditions) { return where(DSL.and(conditions)); } @@ -206,6 +221,7 @@ public PgAuthMembers where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthMembers where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -214,6 +230,7 @@ public PgAuthMembers where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthMembers where(Field condition) { return where(DSL.condition(condition)); } @@ -222,6 +239,7 @@ public PgAuthMembers where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthMembers where(SQL condition) { return where(DSL.condition(condition)); @@ -231,6 +249,7 @@ public PgAuthMembers where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthMembers where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -240,6 +259,7 @@ public PgAuthMembers where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthMembers where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -249,6 +269,7 @@ public PgAuthMembers where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthMembers where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -258,6 +279,7 @@ public PgAuthMembers where(@Stringly.SQL String condition, QueryPart... parts) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthMembers whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -266,6 +288,7 @@ public PgAuthMembers whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthMembers whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthid.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthid.java index 1f0de75..c79dbee 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthid.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgAuthid.java @@ -32,6 +32,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -58,6 +60,7 @@ public class PgAuthid extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgAuthidRecord.class; } @@ -152,31 +155,37 @@ public PgAuthid() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_AUTHID_OID_INDEX; } @Override + @NonNull public List> getUniqueKeys() { return Arrays.asList(Keys.PG_AUTHID_ROLNAME_INDEX); } @Override + @NonNull public PgAuthid as(String alias) { return new PgAuthid(DSL.name(alias), this); } @Override + @NonNull public PgAuthid as(Name alias) { return new PgAuthid(alias, this); } @Override + @NonNull public PgAuthid as(Table alias) { return new PgAuthid(alias.getQualifiedName(), this); } @@ -185,6 +194,7 @@ public PgAuthid as(Table alias) { * Rename this table */ @Override + @NonNull public PgAuthid rename(String name) { return new PgAuthid(DSL.name(name), null); } @@ -193,6 +203,7 @@ public PgAuthid rename(String name) { * Rename this table */ @Override + @NonNull public PgAuthid rename(Name name) { return new PgAuthid(name, null); } @@ -201,6 +212,7 @@ public PgAuthid rename(Name name) { * Rename this table */ @Override + @NonNull public PgAuthid rename(Table name) { return new PgAuthid(name.getQualifiedName(), null); } @@ -209,6 +221,7 @@ public PgAuthid rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthid where(Condition condition) { return new PgAuthid(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -217,6 +230,7 @@ public PgAuthid where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthid where(Collection conditions) { return where(DSL.and(conditions)); } @@ -225,6 +239,7 @@ public PgAuthid where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthid where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -233,6 +248,7 @@ public PgAuthid where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthid where(Field condition) { return where(DSL.condition(condition)); } @@ -241,6 +257,7 @@ public PgAuthid where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthid where(SQL condition) { return where(DSL.condition(condition)); @@ -250,6 +267,7 @@ public PgAuthid where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthid where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -259,6 +277,7 @@ public PgAuthid where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthid where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -268,6 +287,7 @@ public PgAuthid where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgAuthid where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -277,6 +297,7 @@ public PgAuthid where(@Stringly.SQL String condition, QueryPart... parts) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthid whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -285,6 +306,7 @@ public PgAuthid whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgAuthid whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgClass.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgClass.java index 188ec34..f96828e 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgClass.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgClass.java @@ -34,6 +34,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -60,6 +62,7 @@ public class PgClass extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgClassRecord.class; } @@ -270,36 +273,43 @@ public PgClass() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public List getIndexes() { return Arrays.asList(Indexes.PG_CLASS_TBLSPC_RELFILENODE_INDEX); } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_CLASS_OID_INDEX; } @Override + @NonNull public List> getUniqueKeys() { return Arrays.asList(Keys.PG_CLASS_RELNAME_NSP_INDEX); } @Override + @NonNull public PgClass as(String alias) { return new PgClass(DSL.name(alias), this); } @Override + @NonNull public PgClass as(Name alias) { return new PgClass(alias, this); } @Override + @NonNull public PgClass as(Table alias) { return new PgClass(alias.getQualifiedName(), this); } @@ -308,6 +318,7 @@ public PgClass as(Table alias) { * Rename this table */ @Override + @NonNull public PgClass rename(String name) { return new PgClass(DSL.name(name), null); } @@ -316,6 +327,7 @@ public PgClass rename(String name) { * Rename this table */ @Override + @NonNull public PgClass rename(Name name) { return new PgClass(name, null); } @@ -324,6 +336,7 @@ public PgClass rename(Name name) { * Rename this table */ @Override + @NonNull public PgClass rename(Table name) { return new PgClass(name.getQualifiedName(), null); } @@ -332,6 +345,7 @@ public PgClass rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgClass where(Condition condition) { return new PgClass(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -340,6 +354,7 @@ public PgClass where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgClass where(Collection conditions) { return where(DSL.and(conditions)); } @@ -348,6 +363,7 @@ public PgClass where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgClass where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -356,6 +372,7 @@ public PgClass where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgClass where(Field condition) { return where(DSL.condition(condition)); } @@ -364,6 +381,7 @@ public PgClass where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgClass where(SQL condition) { return where(DSL.condition(condition)); @@ -373,6 +391,7 @@ public PgClass where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgClass where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -382,6 +401,7 @@ public PgClass where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgClass where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -391,6 +411,7 @@ public PgClass where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgClass where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -400,6 +421,7 @@ public PgClass where(@Stringly.SQL String condition, QueryPart... parts) { * Create an inline derived table from this table */ @Override + @NonNull public PgClass whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -408,6 +430,7 @@ public PgClass whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgClass whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDatabase.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDatabase.java index e2cb579..df5eee5 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDatabase.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDatabase.java @@ -31,6 +31,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -57,6 +59,7 @@ public class PgDatabase extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgDatabaseRecord.class; } @@ -181,31 +184,37 @@ public PgDatabase() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_DATABASE_OID_INDEX; } @Override + @NonNull public List> getUniqueKeys() { return Arrays.asList(Keys.PG_DATABASE_DATNAME_INDEX); } @Override + @NonNull public PgDatabase as(String alias) { return new PgDatabase(DSL.name(alias), this); } @Override + @NonNull public PgDatabase as(Name alias) { return new PgDatabase(alias, this); } @Override + @NonNull public PgDatabase as(Table alias) { return new PgDatabase(alias.getQualifiedName(), this); } @@ -214,6 +223,7 @@ public PgDatabase as(Table alias) { * Rename this table */ @Override + @NonNull public PgDatabase rename(String name) { return new PgDatabase(DSL.name(name), null); } @@ -222,6 +232,7 @@ public PgDatabase rename(String name) { * Rename this table */ @Override + @NonNull public PgDatabase rename(Name name) { return new PgDatabase(name, null); } @@ -230,6 +241,7 @@ public PgDatabase rename(Name name) { * Rename this table */ @Override + @NonNull public PgDatabase rename(Table name) { return new PgDatabase(name.getQualifiedName(), null); } @@ -238,6 +250,7 @@ public PgDatabase rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgDatabase where(Condition condition) { return new PgDatabase(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -246,6 +259,7 @@ public PgDatabase where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgDatabase where(Collection conditions) { return where(DSL.and(conditions)); } @@ -254,6 +268,7 @@ public PgDatabase where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgDatabase where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -262,6 +277,7 @@ public PgDatabase where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgDatabase where(Field condition) { return where(DSL.condition(condition)); } @@ -270,6 +286,7 @@ public PgDatabase where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDatabase where(SQL condition) { return where(DSL.condition(condition)); @@ -279,6 +296,7 @@ public PgDatabase where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDatabase where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -288,6 +306,7 @@ public PgDatabase where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDatabase where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -297,6 +316,7 @@ public PgDatabase where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDatabase where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -306,6 +326,7 @@ public PgDatabase where(@Stringly.SQL String condition, QueryPart... parts) { * Create an inline derived table from this table */ @Override + @NonNull public PgDatabase whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -314,6 +335,7 @@ public PgDatabase whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgDatabase whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDbRoleSetting.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDbRoleSetting.java index 17a1822..97a9fb2 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDbRoleSetting.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDbRoleSetting.java @@ -29,6 +29,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -55,6 +57,7 @@ public class PgDbRoleSetting extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgDbRoleSettingRecord.class; } @@ -106,26 +109,31 @@ public PgDbRoleSetting() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_DB_ROLE_SETTING_DATABASEID_ROL_INDEX; } @Override + @NonNull public PgDbRoleSetting as(String alias) { return new PgDbRoleSetting(DSL.name(alias), this); } @Override + @NonNull public PgDbRoleSetting as(Name alias) { return new PgDbRoleSetting(alias, this); } @Override + @NonNull public PgDbRoleSetting as(Table alias) { return new PgDbRoleSetting(alias.getQualifiedName(), this); } @@ -134,6 +142,7 @@ public PgDbRoleSetting as(Table alias) { * Rename this table */ @Override + @NonNull public PgDbRoleSetting rename(String name) { return new PgDbRoleSetting(DSL.name(name), null); } @@ -142,6 +151,7 @@ public PgDbRoleSetting rename(String name) { * Rename this table */ @Override + @NonNull public PgDbRoleSetting rename(Name name) { return new PgDbRoleSetting(name, null); } @@ -150,6 +160,7 @@ public PgDbRoleSetting rename(Name name) { * Rename this table */ @Override + @NonNull public PgDbRoleSetting rename(Table name) { return new PgDbRoleSetting(name.getQualifiedName(), null); } @@ -158,6 +169,7 @@ public PgDbRoleSetting rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgDbRoleSetting where(Condition condition) { return new PgDbRoleSetting(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -166,6 +178,7 @@ public PgDbRoleSetting where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgDbRoleSetting where(Collection conditions) { return where(DSL.and(conditions)); } @@ -174,6 +187,7 @@ public PgDbRoleSetting where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgDbRoleSetting where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -182,6 +196,7 @@ public PgDbRoleSetting where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgDbRoleSetting where(Field condition) { return where(DSL.condition(condition)); } @@ -190,6 +205,7 @@ public PgDbRoleSetting where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDbRoleSetting where(SQL condition) { return where(DSL.condition(condition)); @@ -199,6 +215,7 @@ public PgDbRoleSetting where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDbRoleSetting where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -208,6 +225,7 @@ public PgDbRoleSetting where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDbRoleSetting where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -217,6 +235,7 @@ public PgDbRoleSetting where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDbRoleSetting where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -226,6 +245,7 @@ public PgDbRoleSetting where(@Stringly.SQL String condition, QueryPart... parts) * Create an inline derived table from this table */ @Override + @NonNull public PgDbRoleSetting whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -234,6 +254,7 @@ public PgDbRoleSetting whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgDbRoleSetting whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDefaultAcl.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDefaultAcl.java index 1023a7d..d825f3f 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDefaultAcl.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgDefaultAcl.java @@ -31,6 +31,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -57,6 +59,7 @@ public class PgDefaultAcl extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgDefaultAclRecord.class; } @@ -116,31 +119,37 @@ public PgDefaultAcl() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_DEFAULT_ACL_OID_INDEX; } @Override + @NonNull public List> getUniqueKeys() { return Arrays.asList(Keys.PG_DEFAULT_ACL_ROLE_NSP_OBJ_INDEX); } @Override + @NonNull public PgDefaultAcl as(String alias) { return new PgDefaultAcl(DSL.name(alias), this); } @Override + @NonNull public PgDefaultAcl as(Name alias) { return new PgDefaultAcl(alias, this); } @Override + @NonNull public PgDefaultAcl as(Table alias) { return new PgDefaultAcl(alias.getQualifiedName(), this); } @@ -149,6 +158,7 @@ public PgDefaultAcl as(Table alias) { * Rename this table */ @Override + @NonNull public PgDefaultAcl rename(String name) { return new PgDefaultAcl(DSL.name(name), null); } @@ -157,6 +167,7 @@ public PgDefaultAcl rename(String name) { * Rename this table */ @Override + @NonNull public PgDefaultAcl rename(Name name) { return new PgDefaultAcl(name, null); } @@ -165,6 +176,7 @@ public PgDefaultAcl rename(Name name) { * Rename this table */ @Override + @NonNull public PgDefaultAcl rename(Table name) { return new PgDefaultAcl(name.getQualifiedName(), null); } @@ -173,6 +185,7 @@ public PgDefaultAcl rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgDefaultAcl where(Condition condition) { return new PgDefaultAcl(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -181,6 +194,7 @@ public PgDefaultAcl where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgDefaultAcl where(Collection conditions) { return where(DSL.and(conditions)); } @@ -189,6 +203,7 @@ public PgDefaultAcl where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgDefaultAcl where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -197,6 +212,7 @@ public PgDefaultAcl where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgDefaultAcl where(Field condition) { return where(DSL.condition(condition)); } @@ -205,6 +221,7 @@ public PgDefaultAcl where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDefaultAcl where(SQL condition) { return where(DSL.condition(condition)); @@ -214,6 +231,7 @@ public PgDefaultAcl where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDefaultAcl where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -223,6 +241,7 @@ public PgDefaultAcl where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDefaultAcl where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -232,6 +251,7 @@ public PgDefaultAcl where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgDefaultAcl where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -241,6 +261,7 @@ public PgDefaultAcl where(@Stringly.SQL String condition, QueryPart... parts) { * Create an inline derived table from this table */ @Override + @NonNull public PgDefaultAcl whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -249,6 +270,7 @@ public PgDefaultAcl whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgDefaultAcl whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgNamespace.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgNamespace.java index df7356b..e1fe835 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgNamespace.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/PgNamespace.java @@ -31,6 +31,8 @@ import org.jooq.impl.Internal; import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -57,6 +59,7 @@ public class PgNamespace extends TableImpl { * The class holding records for this type */ @Override + @NonNull public Class getRecordType() { return PgNamespaceRecord.class; } @@ -111,31 +114,37 @@ public PgNamespace() { } @Override + @Nullable public Schema getSchema() { return aliased() ? null : PgCatalog.PG_CATALOG; } @Override + @NonNull public UniqueKey getPrimaryKey() { return Keys.PG_NAMESPACE_OID_INDEX; } @Override + @NonNull public List> getUniqueKeys() { return Arrays.asList(Keys.PG_NAMESPACE_NSPNAME_INDEX); } @Override + @NonNull public PgNamespace as(String alias) { return new PgNamespace(DSL.name(alias), this); } @Override + @NonNull public PgNamespace as(Name alias) { return new PgNamespace(alias, this); } @Override + @NonNull public PgNamespace as(Table alias) { return new PgNamespace(alias.getQualifiedName(), this); } @@ -144,6 +153,7 @@ public PgNamespace as(Table alias) { * Rename this table */ @Override + @NonNull public PgNamespace rename(String name) { return new PgNamespace(DSL.name(name), null); } @@ -152,6 +162,7 @@ public PgNamespace rename(String name) { * Rename this table */ @Override + @NonNull public PgNamespace rename(Name name) { return new PgNamespace(name, null); } @@ -160,6 +171,7 @@ public PgNamespace rename(Name name) { * Rename this table */ @Override + @NonNull public PgNamespace rename(Table name) { return new PgNamespace(name.getQualifiedName(), null); } @@ -168,6 +180,7 @@ public PgNamespace rename(Table name) { * Create an inline derived table from this table */ @Override + @NonNull public PgNamespace where(Condition condition) { return new PgNamespace(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); } @@ -176,6 +189,7 @@ public PgNamespace where(Condition condition) { * Create an inline derived table from this table */ @Override + @NonNull public PgNamespace where(Collection conditions) { return where(DSL.and(conditions)); } @@ -184,6 +198,7 @@ public PgNamespace where(Collection conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgNamespace where(Condition... conditions) { return where(DSL.and(conditions)); } @@ -192,6 +207,7 @@ public PgNamespace where(Condition... conditions) { * Create an inline derived table from this table */ @Override + @NonNull public PgNamespace where(Field condition) { return where(DSL.condition(condition)); } @@ -200,6 +216,7 @@ public PgNamespace where(Field condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgNamespace where(SQL condition) { return where(DSL.condition(condition)); @@ -209,6 +226,7 @@ public PgNamespace where(SQL condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgNamespace where(@Stringly.SQL String condition) { return where(DSL.condition(condition)); @@ -218,6 +236,7 @@ public PgNamespace where(@Stringly.SQL String condition) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgNamespace where(@Stringly.SQL String condition, Object... binds) { return where(DSL.condition(condition, binds)); @@ -227,6 +246,7 @@ public PgNamespace where(@Stringly.SQL String condition, Object... binds) { * Create an inline derived table from this table */ @Override + @NonNull @PlainSQL public PgNamespace where(@Stringly.SQL String condition, QueryPart... parts) { return where(DSL.condition(condition, parts)); @@ -236,6 +256,7 @@ public PgNamespace where(@Stringly.SQL String condition, QueryPart... parts) { * Create an inline derived table from this table */ @Override + @NonNull public PgNamespace whereExists(TableLike select) { return where(DSL.exists(select)); } @@ -244,6 +265,7 @@ public PgNamespace whereExists(TableLike select) { * Create an inline derived table from this table */ @Override + @NonNull public PgNamespace whereNotExists(TableLike select) { return where(DSL.notExists(select)); } diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/AclexplodeRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/AclexplodeRecord.java index c619e10..8f51fa4 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/AclexplodeRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/AclexplodeRecord.java @@ -9,6 +9,7 @@ import javax.annotation.processing.Generated; import org.jooq.impl.TableRecordImpl; +import org.jspecify.annotations.Nullable; /** @@ -29,7 +30,7 @@ public class AclexplodeRecord extends TableRecordImpl { /** * Setter for pg_catalog.aclexplode.grantor. */ - public AclexplodeRecord setGrantor(Long value) { + public AclexplodeRecord setGrantor(@Nullable Long value) { set(0, value); return this; } @@ -37,6 +38,7 @@ public AclexplodeRecord setGrantor(Long value) { /** * Getter for pg_catalog.aclexplode.grantor. */ + @Nullable public Long getGrantor() { return (Long) get(0); } @@ -44,7 +46,7 @@ public Long getGrantor() { /** * Setter for pg_catalog.aclexplode.grantee. */ - public AclexplodeRecord setGrantee(Long value) { + public AclexplodeRecord setGrantee(@Nullable Long value) { set(1, value); return this; } @@ -52,6 +54,7 @@ public AclexplodeRecord setGrantee(Long value) { /** * Getter for pg_catalog.aclexplode.grantee. */ + @Nullable public Long getGrantee() { return (Long) get(1); } @@ -59,7 +62,7 @@ public Long getGrantee() { /** * Setter for pg_catalog.aclexplode.privilege_type. */ - public AclexplodeRecord setPrivilegeType(String value) { + public AclexplodeRecord setPrivilegeType(@Nullable String value) { set(2, value); return this; } @@ -67,6 +70,7 @@ public AclexplodeRecord setPrivilegeType(String value) { /** * Getter for pg_catalog.aclexplode.privilege_type. */ + @Nullable public String getPrivilegeType() { return (String) get(2); } @@ -74,7 +78,7 @@ public String getPrivilegeType() { /** * Setter for pg_catalog.aclexplode.is_grantable. */ - public AclexplodeRecord setIsGrantable(Boolean value) { + public AclexplodeRecord setIsGrantable(@Nullable Boolean value) { set(3, value); return this; } @@ -82,6 +86,7 @@ public AclexplodeRecord setIsGrantable(Boolean value) { /** * Getter for pg_catalog.aclexplode.is_grantable. */ + @Nullable public Boolean getIsGrantable() { return (Boolean) get(3); } @@ -100,7 +105,7 @@ public AclexplodeRecord() { /** * Create a detached, initialised AclexplodeRecord */ - public AclexplodeRecord(Long grantor, Long grantee, String privilegeType, Boolean isGrantable) { + public AclexplodeRecord(@Nullable Long grantor, @Nullable Long grantee, @Nullable String privilegeType, @Nullable Boolean isGrantable) { super(Aclexplode.ACLEXPLODE); setGrantor(grantor); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthMembersRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthMembersRecord.java index 6aa00a0..db7ec7a 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthMembersRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthMembersRecord.java @@ -10,6 +10,7 @@ import org.jooq.Record1; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; /** @@ -30,7 +31,7 @@ public class PgAuthMembersRecord extends UpdatableRecordImplpg_catalog.pg_auth_members.oid. */ - public PgAuthMembersRecord setOid(Long value) { + public PgAuthMembersRecord setOid(@NonNull Long value) { set(0, value); return this; } @@ -38,6 +39,7 @@ public PgAuthMembersRecord setOid(Long value) { /** * Getter for pg_catalog.pg_auth_members.oid. */ + @NonNull public Long getOid() { return (Long) get(0); } @@ -45,7 +47,7 @@ public Long getOid() { /** * Setter for pg_catalog.pg_auth_members.roleid. */ - public PgAuthMembersRecord setRoleid(Long value) { + public PgAuthMembersRecord setRoleid(@NonNull Long value) { set(1, value); return this; } @@ -53,6 +55,7 @@ public PgAuthMembersRecord setRoleid(Long value) { /** * Getter for pg_catalog.pg_auth_members.roleid. */ + @NonNull public Long getRoleid() { return (Long) get(1); } @@ -60,7 +63,7 @@ public Long getRoleid() { /** * Setter for pg_catalog.pg_auth_members.member. */ - public PgAuthMembersRecord setMember(Long value) { + public PgAuthMembersRecord setMember(@NonNull Long value) { set(2, value); return this; } @@ -68,6 +71,7 @@ public PgAuthMembersRecord setMember(Long value) { /** * Getter for pg_catalog.pg_auth_members.member. */ + @NonNull public Long getMember() { return (Long) get(2); } @@ -75,7 +79,7 @@ public Long getMember() { /** * Setter for pg_catalog.pg_auth_members.grantor. */ - public PgAuthMembersRecord setGrantor(Long value) { + public PgAuthMembersRecord setGrantor(@NonNull Long value) { set(3, value); return this; } @@ -83,6 +87,7 @@ public PgAuthMembersRecord setGrantor(Long value) { /** * Getter for pg_catalog.pg_auth_members.grantor. */ + @NonNull public Long getGrantor() { return (Long) get(3); } @@ -90,7 +95,7 @@ public Long getGrantor() { /** * Setter for pg_catalog.pg_auth_members.admin_option. */ - public PgAuthMembersRecord setAdminOption(Boolean value) { + public PgAuthMembersRecord setAdminOption(@NonNull Boolean value) { set(4, value); return this; } @@ -98,6 +103,7 @@ public PgAuthMembersRecord setAdminOption(Boolean value) { /** * Getter for pg_catalog.pg_auth_members.admin_option. */ + @NonNull public Boolean getAdminOption() { return (Boolean) get(4); } @@ -105,7 +111,7 @@ public Boolean getAdminOption() { /** * Setter for pg_catalog.pg_auth_members.inherit_option. */ - public PgAuthMembersRecord setInheritOption(Boolean value) { + public PgAuthMembersRecord setInheritOption(@NonNull Boolean value) { set(5, value); return this; } @@ -113,6 +119,7 @@ public PgAuthMembersRecord setInheritOption(Boolean value) { /** * Getter for pg_catalog.pg_auth_members.inherit_option. */ + @NonNull public Boolean getInheritOption() { return (Boolean) get(5); } @@ -120,7 +127,7 @@ public Boolean getInheritOption() { /** * Setter for pg_catalog.pg_auth_members.set_option. */ - public PgAuthMembersRecord setSetOption(Boolean value) { + public PgAuthMembersRecord setSetOption(@NonNull Boolean value) { set(6, value); return this; } @@ -128,6 +135,7 @@ public PgAuthMembersRecord setSetOption(Boolean value) { /** * Getter for pg_catalog.pg_auth_members.set_option. */ + @NonNull public Boolean getSetOption() { return (Boolean) get(6); } @@ -137,6 +145,7 @@ public Boolean getSetOption() { // ------------------------------------------------------------------------- @Override + @NonNull public Record1 key() { return (Record1) super.key(); } @@ -155,7 +164,7 @@ public PgAuthMembersRecord() { /** * Create a detached, initialised PgAuthMembersRecord */ - public PgAuthMembersRecord(Long oid, Long roleid, Long member, Long grantor, Boolean adminOption, Boolean inheritOption, Boolean setOption) { + public PgAuthMembersRecord(@NonNull Long oid, @NonNull Long roleid, @NonNull Long member, @NonNull Long grantor, @NonNull Boolean adminOption, @NonNull Boolean inheritOption, @NonNull Boolean setOption) { super(PgAuthMembers.PG_AUTH_MEMBERS); setOid(oid); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthidRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthidRecord.java index 52c9d6c..e00db29 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthidRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgAuthidRecord.java @@ -12,6 +12,8 @@ import org.jooq.Record1; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -32,7 +34,7 @@ public class PgAuthidRecord extends UpdatableRecordImpl { /** * Setter for pg_catalog.pg_authid.oid. */ - public PgAuthidRecord setOid(Long value) { + public PgAuthidRecord setOid(@NonNull Long value) { set(0, value); return this; } @@ -40,6 +42,7 @@ public PgAuthidRecord setOid(Long value) { /** * Getter for pg_catalog.pg_authid.oid. */ + @NonNull public Long getOid() { return (Long) get(0); } @@ -47,7 +50,7 @@ public Long getOid() { /** * Setter for pg_catalog.pg_authid.rolname. */ - public PgAuthidRecord setRolname(String value) { + public PgAuthidRecord setRolname(@NonNull String value) { set(1, value); return this; } @@ -55,6 +58,7 @@ public PgAuthidRecord setRolname(String value) { /** * Getter for pg_catalog.pg_authid.rolname. */ + @NonNull public String getRolname() { return (String) get(1); } @@ -62,7 +66,7 @@ public String getRolname() { /** * Setter for pg_catalog.pg_authid.rolsuper. */ - public PgAuthidRecord setRolsuper(Boolean value) { + public PgAuthidRecord setRolsuper(@NonNull Boolean value) { set(2, value); return this; } @@ -70,6 +74,7 @@ public PgAuthidRecord setRolsuper(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolsuper. */ + @NonNull public Boolean getRolsuper() { return (Boolean) get(2); } @@ -77,7 +82,7 @@ public Boolean getRolsuper() { /** * Setter for pg_catalog.pg_authid.rolinherit. */ - public PgAuthidRecord setRolinherit(Boolean value) { + public PgAuthidRecord setRolinherit(@NonNull Boolean value) { set(3, value); return this; } @@ -85,6 +90,7 @@ public PgAuthidRecord setRolinherit(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolinherit. */ + @NonNull public Boolean getRolinherit() { return (Boolean) get(3); } @@ -92,7 +98,7 @@ public Boolean getRolinherit() { /** * Setter for pg_catalog.pg_authid.rolcreaterole. */ - public PgAuthidRecord setRolcreaterole(Boolean value) { + public PgAuthidRecord setRolcreaterole(@NonNull Boolean value) { set(4, value); return this; } @@ -100,6 +106,7 @@ public PgAuthidRecord setRolcreaterole(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolcreaterole. */ + @NonNull public Boolean getRolcreaterole() { return (Boolean) get(4); } @@ -107,7 +114,7 @@ public Boolean getRolcreaterole() { /** * Setter for pg_catalog.pg_authid.rolcreatedb. */ - public PgAuthidRecord setRolcreatedb(Boolean value) { + public PgAuthidRecord setRolcreatedb(@NonNull Boolean value) { set(5, value); return this; } @@ -115,6 +122,7 @@ public PgAuthidRecord setRolcreatedb(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolcreatedb. */ + @NonNull public Boolean getRolcreatedb() { return (Boolean) get(5); } @@ -122,7 +130,7 @@ public Boolean getRolcreatedb() { /** * Setter for pg_catalog.pg_authid.rolcanlogin. */ - public PgAuthidRecord setRolcanlogin(Boolean value) { + public PgAuthidRecord setRolcanlogin(@NonNull Boolean value) { set(6, value); return this; } @@ -130,6 +138,7 @@ public PgAuthidRecord setRolcanlogin(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolcanlogin. */ + @NonNull public Boolean getRolcanlogin() { return (Boolean) get(6); } @@ -137,7 +146,7 @@ public Boolean getRolcanlogin() { /** * Setter for pg_catalog.pg_authid.rolreplication. */ - public PgAuthidRecord setRolreplication(Boolean value) { + public PgAuthidRecord setRolreplication(@NonNull Boolean value) { set(7, value); return this; } @@ -145,6 +154,7 @@ public PgAuthidRecord setRolreplication(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolreplication. */ + @NonNull public Boolean getRolreplication() { return (Boolean) get(7); } @@ -152,7 +162,7 @@ public Boolean getRolreplication() { /** * Setter for pg_catalog.pg_authid.rolbypassrls. */ - public PgAuthidRecord setRolbypassrls(Boolean value) { + public PgAuthidRecord setRolbypassrls(@NonNull Boolean value) { set(8, value); return this; } @@ -160,6 +170,7 @@ public PgAuthidRecord setRolbypassrls(Boolean value) { /** * Getter for pg_catalog.pg_authid.rolbypassrls. */ + @NonNull public Boolean getRolbypassrls() { return (Boolean) get(8); } @@ -167,7 +178,7 @@ public Boolean getRolbypassrls() { /** * Setter for pg_catalog.pg_authid.rolconnlimit. */ - public PgAuthidRecord setRolconnlimit(Integer value) { + public PgAuthidRecord setRolconnlimit(@NonNull Integer value) { set(9, value); return this; } @@ -175,6 +186,7 @@ public PgAuthidRecord setRolconnlimit(Integer value) { /** * Getter for pg_catalog.pg_authid.rolconnlimit. */ + @NonNull public Integer getRolconnlimit() { return (Integer) get(9); } @@ -182,7 +194,7 @@ public Integer getRolconnlimit() { /** * Setter for pg_catalog.pg_authid.rolpassword. */ - public PgAuthidRecord setRolpassword(String value) { + public PgAuthidRecord setRolpassword(@Nullable String value) { set(10, value); return this; } @@ -190,6 +202,7 @@ public PgAuthidRecord setRolpassword(String value) { /** * Getter for pg_catalog.pg_authid.rolpassword. */ + @Nullable public String getRolpassword() { return (String) get(10); } @@ -197,7 +210,7 @@ public String getRolpassword() { /** * Setter for pg_catalog.pg_authid.rolvaliduntil. */ - public PgAuthidRecord setRolvaliduntil(OffsetDateTime value) { + public PgAuthidRecord setRolvaliduntil(@Nullable OffsetDateTime value) { set(11, value); return this; } @@ -205,6 +218,7 @@ public PgAuthidRecord setRolvaliduntil(OffsetDateTime value) { /** * Getter for pg_catalog.pg_authid.rolvaliduntil. */ + @Nullable public OffsetDateTime getRolvaliduntil() { return (OffsetDateTime) get(11); } @@ -214,6 +228,7 @@ public OffsetDateTime getRolvaliduntil() { // ------------------------------------------------------------------------- @Override + @NonNull public Record1 key() { return (Record1) super.key(); } @@ -232,7 +247,7 @@ public PgAuthidRecord() { /** * Create a detached, initialised PgAuthidRecord */ - public PgAuthidRecord(Long oid, String rolname, Boolean rolsuper, Boolean rolinherit, Boolean rolcreaterole, Boolean rolcreatedb, Boolean rolcanlogin, Boolean rolreplication, Boolean rolbypassrls, Integer rolconnlimit, String rolpassword, OffsetDateTime rolvaliduntil) { + public PgAuthidRecord(@NonNull Long oid, @NonNull String rolname, @NonNull Boolean rolsuper, @NonNull Boolean rolinherit, @NonNull Boolean rolcreaterole, @NonNull Boolean rolcreatedb, @NonNull Boolean rolcanlogin, @NonNull Boolean rolreplication, @NonNull Boolean rolbypassrls, @NonNull Integer rolconnlimit, @Nullable String rolpassword, @Nullable OffsetDateTime rolvaliduntil) { super(PgAuthid.PG_AUTHID); setOid(oid); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgClassRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgClassRecord.java index e30e087..e55d6b9 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgClassRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgClassRecord.java @@ -10,6 +10,8 @@ import org.jooq.Record1; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -30,7 +32,7 @@ public class PgClassRecord extends UpdatableRecordImpl { /** * Setter for pg_catalog.pg_class.oid. */ - public PgClassRecord setOid(Long value) { + public PgClassRecord setOid(@NonNull Long value) { set(0, value); return this; } @@ -38,6 +40,7 @@ public PgClassRecord setOid(Long value) { /** * Getter for pg_catalog.pg_class.oid. */ + @NonNull public Long getOid() { return (Long) get(0); } @@ -45,7 +48,7 @@ public Long getOid() { /** * Setter for pg_catalog.pg_class.relname. */ - public PgClassRecord setRelname(String value) { + public PgClassRecord setRelname(@NonNull String value) { set(1, value); return this; } @@ -53,6 +56,7 @@ public PgClassRecord setRelname(String value) { /** * Getter for pg_catalog.pg_class.relname. */ + @NonNull public String getRelname() { return (String) get(1); } @@ -60,7 +64,7 @@ public String getRelname() { /** * Setter for pg_catalog.pg_class.relnamespace. */ - public PgClassRecord setRelnamespace(Long value) { + public PgClassRecord setRelnamespace(@NonNull Long value) { set(2, value); return this; } @@ -68,6 +72,7 @@ public PgClassRecord setRelnamespace(Long value) { /** * Getter for pg_catalog.pg_class.relnamespace. */ + @NonNull public Long getRelnamespace() { return (Long) get(2); } @@ -75,7 +80,7 @@ public Long getRelnamespace() { /** * Setter for pg_catalog.pg_class.reltype. */ - public PgClassRecord setReltype(Long value) { + public PgClassRecord setReltype(@NonNull Long value) { set(3, value); return this; } @@ -83,6 +88,7 @@ public PgClassRecord setReltype(Long value) { /** * Getter for pg_catalog.pg_class.reltype. */ + @NonNull public Long getReltype() { return (Long) get(3); } @@ -90,7 +96,7 @@ public Long getReltype() { /** * Setter for pg_catalog.pg_class.reloftype. */ - public PgClassRecord setReloftype(Long value) { + public PgClassRecord setReloftype(@NonNull Long value) { set(4, value); return this; } @@ -98,6 +104,7 @@ public PgClassRecord setReloftype(Long value) { /** * Getter for pg_catalog.pg_class.reloftype. */ + @NonNull public Long getReloftype() { return (Long) get(4); } @@ -105,7 +112,7 @@ public Long getReloftype() { /** * Setter for pg_catalog.pg_class.relowner. */ - public PgClassRecord setRelowner(Long value) { + public PgClassRecord setRelowner(@NonNull Long value) { set(5, value); return this; } @@ -113,6 +120,7 @@ public PgClassRecord setRelowner(Long value) { /** * Getter for pg_catalog.pg_class.relowner. */ + @NonNull public Long getRelowner() { return (Long) get(5); } @@ -120,7 +128,7 @@ public Long getRelowner() { /** * Setter for pg_catalog.pg_class.relam. */ - public PgClassRecord setRelam(Long value) { + public PgClassRecord setRelam(@NonNull Long value) { set(6, value); return this; } @@ -128,6 +136,7 @@ public PgClassRecord setRelam(Long value) { /** * Getter for pg_catalog.pg_class.relam. */ + @NonNull public Long getRelam() { return (Long) get(6); } @@ -135,7 +144,7 @@ public Long getRelam() { /** * Setter for pg_catalog.pg_class.relfilenode. */ - public PgClassRecord setRelfilenode(Long value) { + public PgClassRecord setRelfilenode(@NonNull Long value) { set(7, value); return this; } @@ -143,6 +152,7 @@ public PgClassRecord setRelfilenode(Long value) { /** * Getter for pg_catalog.pg_class.relfilenode. */ + @NonNull public Long getRelfilenode() { return (Long) get(7); } @@ -150,7 +160,7 @@ public Long getRelfilenode() { /** * Setter for pg_catalog.pg_class.reltablespace. */ - public PgClassRecord setReltablespace(Long value) { + public PgClassRecord setReltablespace(@NonNull Long value) { set(8, value); return this; } @@ -158,6 +168,7 @@ public PgClassRecord setReltablespace(Long value) { /** * Getter for pg_catalog.pg_class.reltablespace. */ + @NonNull public Long getReltablespace() { return (Long) get(8); } @@ -165,7 +176,7 @@ public Long getReltablespace() { /** * Setter for pg_catalog.pg_class.relpages. */ - public PgClassRecord setRelpages(Integer value) { + public PgClassRecord setRelpages(@NonNull Integer value) { set(9, value); return this; } @@ -173,6 +184,7 @@ public PgClassRecord setRelpages(Integer value) { /** * Getter for pg_catalog.pg_class.relpages. */ + @NonNull public Integer getRelpages() { return (Integer) get(9); } @@ -180,7 +192,7 @@ public Integer getRelpages() { /** * Setter for pg_catalog.pg_class.reltuples. */ - public PgClassRecord setReltuples(Float value) { + public PgClassRecord setReltuples(@NonNull Float value) { set(10, value); return this; } @@ -188,6 +200,7 @@ public PgClassRecord setReltuples(Float value) { /** * Getter for pg_catalog.pg_class.reltuples. */ + @NonNull public Float getReltuples() { return (Float) get(10); } @@ -195,7 +208,7 @@ public Float getReltuples() { /** * Setter for pg_catalog.pg_class.relallvisible. */ - public PgClassRecord setRelallvisible(Integer value) { + public PgClassRecord setRelallvisible(@NonNull Integer value) { set(11, value); return this; } @@ -203,6 +216,7 @@ public PgClassRecord setRelallvisible(Integer value) { /** * Getter for pg_catalog.pg_class.relallvisible. */ + @NonNull public Integer getRelallvisible() { return (Integer) get(11); } @@ -210,7 +224,7 @@ public Integer getRelallvisible() { /** * Setter for pg_catalog.pg_class.relallfrozen. */ - public PgClassRecord setRelallfrozen(Integer value) { + public PgClassRecord setRelallfrozen(@NonNull Integer value) { set(12, value); return this; } @@ -218,6 +232,7 @@ public PgClassRecord setRelallfrozen(Integer value) { /** * Getter for pg_catalog.pg_class.relallfrozen. */ + @NonNull public Integer getRelallfrozen() { return (Integer) get(12); } @@ -225,7 +240,7 @@ public Integer getRelallfrozen() { /** * Setter for pg_catalog.pg_class.reltoastrelid. */ - public PgClassRecord setReltoastrelid(Long value) { + public PgClassRecord setReltoastrelid(@NonNull Long value) { set(13, value); return this; } @@ -233,6 +248,7 @@ public PgClassRecord setReltoastrelid(Long value) { /** * Getter for pg_catalog.pg_class.reltoastrelid. */ + @NonNull public Long getReltoastrelid() { return (Long) get(13); } @@ -240,7 +256,7 @@ public Long getReltoastrelid() { /** * Setter for pg_catalog.pg_class.relhasindex. */ - public PgClassRecord setRelhasindex(Boolean value) { + public PgClassRecord setRelhasindex(@NonNull Boolean value) { set(14, value); return this; } @@ -248,6 +264,7 @@ public PgClassRecord setRelhasindex(Boolean value) { /** * Getter for pg_catalog.pg_class.relhasindex. */ + @NonNull public Boolean getRelhasindex() { return (Boolean) get(14); } @@ -255,7 +272,7 @@ public Boolean getRelhasindex() { /** * Setter for pg_catalog.pg_class.relisshared. */ - public PgClassRecord setRelisshared(Boolean value) { + public PgClassRecord setRelisshared(@NonNull Boolean value) { set(15, value); return this; } @@ -263,6 +280,7 @@ public PgClassRecord setRelisshared(Boolean value) { /** * Getter for pg_catalog.pg_class.relisshared. */ + @NonNull public Boolean getRelisshared() { return (Boolean) get(15); } @@ -270,7 +288,7 @@ public Boolean getRelisshared() { /** * Setter for pg_catalog.pg_class.relpersistence. */ - public PgClassRecord setRelpersistence(String value) { + public PgClassRecord setRelpersistence(@NonNull String value) { set(16, value); return this; } @@ -278,6 +296,7 @@ public PgClassRecord setRelpersistence(String value) { /** * Getter for pg_catalog.pg_class.relpersistence. */ + @NonNull public String getRelpersistence() { return (String) get(16); } @@ -285,7 +304,7 @@ public String getRelpersistence() { /** * Setter for pg_catalog.pg_class.relkind. */ - public PgClassRecord setRelkind(String value) { + public PgClassRecord setRelkind(@NonNull String value) { set(17, value); return this; } @@ -293,6 +312,7 @@ public PgClassRecord setRelkind(String value) { /** * Getter for pg_catalog.pg_class.relkind. */ + @NonNull public String getRelkind() { return (String) get(17); } @@ -300,7 +320,7 @@ public String getRelkind() { /** * Setter for pg_catalog.pg_class.relnatts. */ - public PgClassRecord setRelnatts(Short value) { + public PgClassRecord setRelnatts(@NonNull Short value) { set(18, value); return this; } @@ -308,6 +328,7 @@ public PgClassRecord setRelnatts(Short value) { /** * Getter for pg_catalog.pg_class.relnatts. */ + @NonNull public Short getRelnatts() { return (Short) get(18); } @@ -315,7 +336,7 @@ public Short getRelnatts() { /** * Setter for pg_catalog.pg_class.relchecks. */ - public PgClassRecord setRelchecks(Short value) { + public PgClassRecord setRelchecks(@NonNull Short value) { set(19, value); return this; } @@ -323,6 +344,7 @@ public PgClassRecord setRelchecks(Short value) { /** * Getter for pg_catalog.pg_class.relchecks. */ + @NonNull public Short getRelchecks() { return (Short) get(19); } @@ -330,7 +352,7 @@ public Short getRelchecks() { /** * Setter for pg_catalog.pg_class.relhasrules. */ - public PgClassRecord setRelhasrules(Boolean value) { + public PgClassRecord setRelhasrules(@NonNull Boolean value) { set(20, value); return this; } @@ -338,6 +360,7 @@ public PgClassRecord setRelhasrules(Boolean value) { /** * Getter for pg_catalog.pg_class.relhasrules. */ + @NonNull public Boolean getRelhasrules() { return (Boolean) get(20); } @@ -345,7 +368,7 @@ public Boolean getRelhasrules() { /** * Setter for pg_catalog.pg_class.relhastriggers. */ - public PgClassRecord setRelhastriggers(Boolean value) { + public PgClassRecord setRelhastriggers(@NonNull Boolean value) { set(21, value); return this; } @@ -353,6 +376,7 @@ public PgClassRecord setRelhastriggers(Boolean value) { /** * Getter for pg_catalog.pg_class.relhastriggers. */ + @NonNull public Boolean getRelhastriggers() { return (Boolean) get(21); } @@ -360,7 +384,7 @@ public Boolean getRelhastriggers() { /** * Setter for pg_catalog.pg_class.relhassubclass. */ - public PgClassRecord setRelhassubclass(Boolean value) { + public PgClassRecord setRelhassubclass(@NonNull Boolean value) { set(22, value); return this; } @@ -368,6 +392,7 @@ public PgClassRecord setRelhassubclass(Boolean value) { /** * Getter for pg_catalog.pg_class.relhassubclass. */ + @NonNull public Boolean getRelhassubclass() { return (Boolean) get(22); } @@ -375,7 +400,7 @@ public Boolean getRelhassubclass() { /** * Setter for pg_catalog.pg_class.relrowsecurity. */ - public PgClassRecord setRelrowsecurity(Boolean value) { + public PgClassRecord setRelrowsecurity(@NonNull Boolean value) { set(23, value); return this; } @@ -383,6 +408,7 @@ public PgClassRecord setRelrowsecurity(Boolean value) { /** * Getter for pg_catalog.pg_class.relrowsecurity. */ + @NonNull public Boolean getRelrowsecurity() { return (Boolean) get(23); } @@ -390,7 +416,7 @@ public Boolean getRelrowsecurity() { /** * Setter for pg_catalog.pg_class.relforcerowsecurity. */ - public PgClassRecord setRelforcerowsecurity(Boolean value) { + public PgClassRecord setRelforcerowsecurity(@NonNull Boolean value) { set(24, value); return this; } @@ -398,6 +424,7 @@ public PgClassRecord setRelforcerowsecurity(Boolean value) { /** * Getter for pg_catalog.pg_class.relforcerowsecurity. */ + @NonNull public Boolean getRelforcerowsecurity() { return (Boolean) get(24); } @@ -405,7 +432,7 @@ public Boolean getRelforcerowsecurity() { /** * Setter for pg_catalog.pg_class.relispopulated. */ - public PgClassRecord setRelispopulated(Boolean value) { + public PgClassRecord setRelispopulated(@NonNull Boolean value) { set(25, value); return this; } @@ -413,6 +440,7 @@ public PgClassRecord setRelispopulated(Boolean value) { /** * Getter for pg_catalog.pg_class.relispopulated. */ + @NonNull public Boolean getRelispopulated() { return (Boolean) get(25); } @@ -420,7 +448,7 @@ public Boolean getRelispopulated() { /** * Setter for pg_catalog.pg_class.relreplident. */ - public PgClassRecord setRelreplident(String value) { + public PgClassRecord setRelreplident(@NonNull String value) { set(26, value); return this; } @@ -428,6 +456,7 @@ public PgClassRecord setRelreplident(String value) { /** * Getter for pg_catalog.pg_class.relreplident. */ + @NonNull public String getRelreplident() { return (String) get(26); } @@ -435,7 +464,7 @@ public String getRelreplident() { /** * Setter for pg_catalog.pg_class.relispartition. */ - public PgClassRecord setRelispartition(Boolean value) { + public PgClassRecord setRelispartition(@NonNull Boolean value) { set(27, value); return this; } @@ -443,6 +472,7 @@ public PgClassRecord setRelispartition(Boolean value) { /** * Getter for pg_catalog.pg_class.relispartition. */ + @NonNull public Boolean getRelispartition() { return (Boolean) get(27); } @@ -450,7 +480,7 @@ public Boolean getRelispartition() { /** * Setter for pg_catalog.pg_class.relrewrite. */ - public PgClassRecord setRelrewrite(Long value) { + public PgClassRecord setRelrewrite(@NonNull Long value) { set(28, value); return this; } @@ -458,6 +488,7 @@ public PgClassRecord setRelrewrite(Long value) { /** * Getter for pg_catalog.pg_class.relrewrite. */ + @NonNull public Long getRelrewrite() { return (Long) get(28); } @@ -465,7 +496,7 @@ public Long getRelrewrite() { /** * Setter for pg_catalog.pg_class.relfrozenxid. */ - public PgClassRecord setRelfrozenxid(Long value) { + public PgClassRecord setRelfrozenxid(@NonNull Long value) { set(29, value); return this; } @@ -473,6 +504,7 @@ public PgClassRecord setRelfrozenxid(Long value) { /** * Getter for pg_catalog.pg_class.relfrozenxid. */ + @NonNull public Long getRelfrozenxid() { return (Long) get(29); } @@ -480,7 +512,7 @@ public Long getRelfrozenxid() { /** * Setter for pg_catalog.pg_class.relminmxid. */ - public PgClassRecord setRelminmxid(Long value) { + public PgClassRecord setRelminmxid(@NonNull Long value) { set(30, value); return this; } @@ -488,6 +520,7 @@ public PgClassRecord setRelminmxid(Long value) { /** * Getter for pg_catalog.pg_class.relminmxid. */ + @NonNull public Long getRelminmxid() { return (Long) get(30); } @@ -495,7 +528,7 @@ public Long getRelminmxid() { /** * Setter for pg_catalog.pg_class.relacl. */ - public PgClassRecord setRelacl(String[] value) { + public PgClassRecord setRelacl(@Nullable String[] value) { set(31, value); return this; } @@ -503,6 +536,7 @@ public PgClassRecord setRelacl(String[] value) { /** * Getter for pg_catalog.pg_class.relacl. */ + @Nullable public String[] getRelacl() { return (String[]) get(31); } @@ -510,7 +544,7 @@ public String[] getRelacl() { /** * Setter for pg_catalog.pg_class.reloptions. */ - public PgClassRecord setReloptions(String[] value) { + public PgClassRecord setReloptions(@Nullable String[] value) { set(32, value); return this; } @@ -518,6 +552,7 @@ public PgClassRecord setReloptions(String[] value) { /** * Getter for pg_catalog.pg_class.reloptions. */ + @Nullable public String[] getReloptions() { return (String[]) get(32); } @@ -531,7 +566,7 @@ public String[] getReloptions() { * configuration. */ @Deprecated - public PgClassRecord setRelpartbound(Object value) { + public PgClassRecord setRelpartbound(@Nullable Object value) { set(33, value); return this; } @@ -545,6 +580,7 @@ public PgClassRecord setRelpartbound(Object value) { * configuration. */ @Deprecated + @Nullable public Object getRelpartbound() { return get(33); } @@ -554,6 +590,7 @@ public Object getRelpartbound() { // ------------------------------------------------------------------------- @Override + @NonNull public Record1 key() { return (Record1) super.key(); } @@ -572,7 +609,7 @@ public PgClassRecord() { /** * Create a detached, initialised PgClassRecord */ - public PgClassRecord(Long oid, String relname, Long relnamespace, Long reltype, Long reloftype, Long relowner, Long relam, Long relfilenode, Long reltablespace, Integer relpages, Float reltuples, Integer relallvisible, Integer relallfrozen, Long reltoastrelid, Boolean relhasindex, Boolean relisshared, String relpersistence, String relkind, Short relnatts, Short relchecks, Boolean relhasrules, Boolean relhastriggers, Boolean relhassubclass, Boolean relrowsecurity, Boolean relforcerowsecurity, Boolean relispopulated, String relreplident, Boolean relispartition, Long relrewrite, Long relfrozenxid, Long relminmxid, String[] relacl, String[] reloptions, Object relpartbound) { + public PgClassRecord(@NonNull Long oid, @NonNull String relname, @NonNull Long relnamespace, @NonNull Long reltype, @NonNull Long reloftype, @NonNull Long relowner, @NonNull Long relam, @NonNull Long relfilenode, @NonNull Long reltablespace, @NonNull Integer relpages, @NonNull Float reltuples, @NonNull Integer relallvisible, @NonNull Integer relallfrozen, @NonNull Long reltoastrelid, @NonNull Boolean relhasindex, @NonNull Boolean relisshared, @NonNull String relpersistence, @NonNull String relkind, @NonNull Short relnatts, @NonNull Short relchecks, @NonNull Boolean relhasrules, @NonNull Boolean relhastriggers, @NonNull Boolean relhassubclass, @NonNull Boolean relrowsecurity, @NonNull Boolean relforcerowsecurity, @NonNull Boolean relispopulated, @NonNull String relreplident, @NonNull Boolean relispartition, @NonNull Long relrewrite, @NonNull Long relfrozenxid, @NonNull Long relminmxid, @Nullable String[] relacl, @Nullable String[] reloptions, @Nullable Object relpartbound) { super(PgClass.PG_CLASS); setOid(oid); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDatabaseRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDatabaseRecord.java index 1f2458f..082eb05 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDatabaseRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDatabaseRecord.java @@ -10,6 +10,8 @@ import org.jooq.Record1; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -30,7 +32,7 @@ public class PgDatabaseRecord extends UpdatableRecordImpl { /** * Setter for pg_catalog.pg_database.oid. */ - public PgDatabaseRecord setOid(Long value) { + public PgDatabaseRecord setOid(@NonNull Long value) { set(0, value); return this; } @@ -38,6 +40,7 @@ public PgDatabaseRecord setOid(Long value) { /** * Getter for pg_catalog.pg_database.oid. */ + @NonNull public Long getOid() { return (Long) get(0); } @@ -45,7 +48,7 @@ public Long getOid() { /** * Setter for pg_catalog.pg_database.datname. */ - public PgDatabaseRecord setDatname(String value) { + public PgDatabaseRecord setDatname(@NonNull String value) { set(1, value); return this; } @@ -53,6 +56,7 @@ public PgDatabaseRecord setDatname(String value) { /** * Getter for pg_catalog.pg_database.datname. */ + @NonNull public String getDatname() { return (String) get(1); } @@ -60,7 +64,7 @@ public String getDatname() { /** * Setter for pg_catalog.pg_database.datdba. */ - public PgDatabaseRecord setDatdba(Long value) { + public PgDatabaseRecord setDatdba(@NonNull Long value) { set(2, value); return this; } @@ -68,6 +72,7 @@ public PgDatabaseRecord setDatdba(Long value) { /** * Getter for pg_catalog.pg_database.datdba. */ + @NonNull public Long getDatdba() { return (Long) get(2); } @@ -75,7 +80,7 @@ public Long getDatdba() { /** * Setter for pg_catalog.pg_database.encoding. */ - public PgDatabaseRecord setEncoding(Integer value) { + public PgDatabaseRecord setEncoding(@NonNull Integer value) { set(3, value); return this; } @@ -83,6 +88,7 @@ public PgDatabaseRecord setEncoding(Integer value) { /** * Getter for pg_catalog.pg_database.encoding. */ + @NonNull public Integer getEncoding() { return (Integer) get(3); } @@ -90,7 +96,7 @@ public Integer getEncoding() { /** * Setter for pg_catalog.pg_database.datlocprovider. */ - public PgDatabaseRecord setDatlocprovider(String value) { + public PgDatabaseRecord setDatlocprovider(@NonNull String value) { set(4, value); return this; } @@ -98,6 +104,7 @@ public PgDatabaseRecord setDatlocprovider(String value) { /** * Getter for pg_catalog.pg_database.datlocprovider. */ + @NonNull public String getDatlocprovider() { return (String) get(4); } @@ -105,7 +112,7 @@ public String getDatlocprovider() { /** * Setter for pg_catalog.pg_database.datistemplate. */ - public PgDatabaseRecord setDatistemplate(Boolean value) { + public PgDatabaseRecord setDatistemplate(@NonNull Boolean value) { set(5, value); return this; } @@ -113,6 +120,7 @@ public PgDatabaseRecord setDatistemplate(Boolean value) { /** * Getter for pg_catalog.pg_database.datistemplate. */ + @NonNull public Boolean getDatistemplate() { return (Boolean) get(5); } @@ -120,7 +128,7 @@ public Boolean getDatistemplate() { /** * Setter for pg_catalog.pg_database.datallowconn. */ - public PgDatabaseRecord setDatallowconn(Boolean value) { + public PgDatabaseRecord setDatallowconn(@NonNull Boolean value) { set(6, value); return this; } @@ -128,6 +136,7 @@ public PgDatabaseRecord setDatallowconn(Boolean value) { /** * Getter for pg_catalog.pg_database.datallowconn. */ + @NonNull public Boolean getDatallowconn() { return (Boolean) get(6); } @@ -135,7 +144,7 @@ public Boolean getDatallowconn() { /** * Setter for pg_catalog.pg_database.dathasloginevt. */ - public PgDatabaseRecord setDathasloginevt(Boolean value) { + public PgDatabaseRecord setDathasloginevt(@NonNull Boolean value) { set(7, value); return this; } @@ -143,6 +152,7 @@ public PgDatabaseRecord setDathasloginevt(Boolean value) { /** * Getter for pg_catalog.pg_database.dathasloginevt. */ + @NonNull public Boolean getDathasloginevt() { return (Boolean) get(7); } @@ -150,7 +160,7 @@ public Boolean getDathasloginevt() { /** * Setter for pg_catalog.pg_database.datconnlimit. */ - public PgDatabaseRecord setDatconnlimit(Integer value) { + public PgDatabaseRecord setDatconnlimit(@NonNull Integer value) { set(8, value); return this; } @@ -158,6 +168,7 @@ public PgDatabaseRecord setDatconnlimit(Integer value) { /** * Getter for pg_catalog.pg_database.datconnlimit. */ + @NonNull public Integer getDatconnlimit() { return (Integer) get(8); } @@ -165,7 +176,7 @@ public Integer getDatconnlimit() { /** * Setter for pg_catalog.pg_database.datfrozenxid. */ - public PgDatabaseRecord setDatfrozenxid(Long value) { + public PgDatabaseRecord setDatfrozenxid(@NonNull Long value) { set(9, value); return this; } @@ -173,6 +184,7 @@ public PgDatabaseRecord setDatfrozenxid(Long value) { /** * Getter for pg_catalog.pg_database.datfrozenxid. */ + @NonNull public Long getDatfrozenxid() { return (Long) get(9); } @@ -180,7 +192,7 @@ public Long getDatfrozenxid() { /** * Setter for pg_catalog.pg_database.datminmxid. */ - public PgDatabaseRecord setDatminmxid(Long value) { + public PgDatabaseRecord setDatminmxid(@NonNull Long value) { set(10, value); return this; } @@ -188,6 +200,7 @@ public PgDatabaseRecord setDatminmxid(Long value) { /** * Getter for pg_catalog.pg_database.datminmxid. */ + @NonNull public Long getDatminmxid() { return (Long) get(10); } @@ -195,7 +208,7 @@ public Long getDatminmxid() { /** * Setter for pg_catalog.pg_database.dattablespace. */ - public PgDatabaseRecord setDattablespace(Long value) { + public PgDatabaseRecord setDattablespace(@NonNull Long value) { set(11, value); return this; } @@ -203,6 +216,7 @@ public PgDatabaseRecord setDattablespace(Long value) { /** * Getter for pg_catalog.pg_database.dattablespace. */ + @NonNull public Long getDattablespace() { return (Long) get(11); } @@ -210,7 +224,7 @@ public Long getDattablespace() { /** * Setter for pg_catalog.pg_database.datcollate. */ - public PgDatabaseRecord setDatcollate(String value) { + public PgDatabaseRecord setDatcollate(@NonNull String value) { set(12, value); return this; } @@ -218,6 +232,7 @@ public PgDatabaseRecord setDatcollate(String value) { /** * Getter for pg_catalog.pg_database.datcollate. */ + @NonNull public String getDatcollate() { return (String) get(12); } @@ -225,7 +240,7 @@ public String getDatcollate() { /** * Setter for pg_catalog.pg_database.datctype. */ - public PgDatabaseRecord setDatctype(String value) { + public PgDatabaseRecord setDatctype(@NonNull String value) { set(13, value); return this; } @@ -233,6 +248,7 @@ public PgDatabaseRecord setDatctype(String value) { /** * Getter for pg_catalog.pg_database.datctype. */ + @NonNull public String getDatctype() { return (String) get(13); } @@ -240,7 +256,7 @@ public String getDatctype() { /** * Setter for pg_catalog.pg_database.datlocale. */ - public PgDatabaseRecord setDatlocale(String value) { + public PgDatabaseRecord setDatlocale(@Nullable String value) { set(14, value); return this; } @@ -248,6 +264,7 @@ public PgDatabaseRecord setDatlocale(String value) { /** * Getter for pg_catalog.pg_database.datlocale. */ + @Nullable public String getDatlocale() { return (String) get(14); } @@ -255,7 +272,7 @@ public String getDatlocale() { /** * Setter for pg_catalog.pg_database.daticurules. */ - public PgDatabaseRecord setDaticurules(String value) { + public PgDatabaseRecord setDaticurules(@Nullable String value) { set(15, value); return this; } @@ -263,6 +280,7 @@ public PgDatabaseRecord setDaticurules(String value) { /** * Getter for pg_catalog.pg_database.daticurules. */ + @Nullable public String getDaticurules() { return (String) get(15); } @@ -270,7 +288,7 @@ public String getDaticurules() { /** * Setter for pg_catalog.pg_database.datcollversion. */ - public PgDatabaseRecord setDatcollversion(String value) { + public PgDatabaseRecord setDatcollversion(@Nullable String value) { set(16, value); return this; } @@ -278,6 +296,7 @@ public PgDatabaseRecord setDatcollversion(String value) { /** * Getter for pg_catalog.pg_database.datcollversion. */ + @Nullable public String getDatcollversion() { return (String) get(16); } @@ -285,7 +304,7 @@ public String getDatcollversion() { /** * Setter for pg_catalog.pg_database.datacl. */ - public PgDatabaseRecord setDatacl(String[] value) { + public PgDatabaseRecord setDatacl(@Nullable String[] value) { set(17, value); return this; } @@ -293,6 +312,7 @@ public PgDatabaseRecord setDatacl(String[] value) { /** * Getter for pg_catalog.pg_database.datacl. */ + @Nullable public String[] getDatacl() { return (String[]) get(17); } @@ -302,6 +322,7 @@ public String[] getDatacl() { // ------------------------------------------------------------------------- @Override + @NonNull public Record1 key() { return (Record1) super.key(); } @@ -320,7 +341,7 @@ public PgDatabaseRecord() { /** * Create a detached, initialised PgDatabaseRecord */ - public PgDatabaseRecord(Long oid, String datname, Long datdba, Integer encoding, String datlocprovider, Boolean datistemplate, Boolean datallowconn, Boolean dathasloginevt, Integer datconnlimit, Long datfrozenxid, Long datminmxid, Long dattablespace, String datcollate, String datctype, String datlocale, String daticurules, String datcollversion, String[] datacl) { + public PgDatabaseRecord(@NonNull Long oid, @NonNull String datname, @NonNull Long datdba, @NonNull Integer encoding, @NonNull String datlocprovider, @NonNull Boolean datistemplate, @NonNull Boolean datallowconn, @NonNull Boolean dathasloginevt, @NonNull Integer datconnlimit, @NonNull Long datfrozenxid, @NonNull Long datminmxid, @NonNull Long dattablespace, @NonNull String datcollate, @NonNull String datctype, @Nullable String datlocale, @Nullable String daticurules, @Nullable String datcollversion, @Nullable String[] datacl) { super(PgDatabase.PG_DATABASE); setOid(oid); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDbRoleSettingRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDbRoleSettingRecord.java index d0d4b06..cf31be2 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDbRoleSettingRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDbRoleSettingRecord.java @@ -10,6 +10,8 @@ import org.jooq.Record2; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -30,7 +32,7 @@ public class PgDbRoleSettingRecord extends UpdatableRecordImplpg_catalog.pg_db_role_setting.setdatabase. */ - public PgDbRoleSettingRecord setSetdatabase(Long value) { + public PgDbRoleSettingRecord setSetdatabase(@NonNull Long value) { set(0, value); return this; } @@ -38,6 +40,7 @@ public PgDbRoleSettingRecord setSetdatabase(Long value) { /** * Getter for pg_catalog.pg_db_role_setting.setdatabase. */ + @NonNull public Long getSetdatabase() { return (Long) get(0); } @@ -45,7 +48,7 @@ public Long getSetdatabase() { /** * Setter for pg_catalog.pg_db_role_setting.setrole. */ - public PgDbRoleSettingRecord setSetrole(Long value) { + public PgDbRoleSettingRecord setSetrole(@NonNull Long value) { set(1, value); return this; } @@ -53,6 +56,7 @@ public PgDbRoleSettingRecord setSetrole(Long value) { /** * Getter for pg_catalog.pg_db_role_setting.setrole. */ + @NonNull public Long getSetrole() { return (Long) get(1); } @@ -60,7 +64,7 @@ public Long getSetrole() { /** * Setter for pg_catalog.pg_db_role_setting.setconfig. */ - public PgDbRoleSettingRecord setSetconfig(String[] value) { + public PgDbRoleSettingRecord setSetconfig(@Nullable String[] value) { set(2, value); return this; } @@ -68,6 +72,7 @@ public PgDbRoleSettingRecord setSetconfig(String[] value) { /** * Getter for pg_catalog.pg_db_role_setting.setconfig. */ + @Nullable public String[] getSetconfig() { return (String[]) get(2); } @@ -77,6 +82,7 @@ public String[] getSetconfig() { // ------------------------------------------------------------------------- @Override + @NonNull public Record2 key() { return (Record2) super.key(); } @@ -95,7 +101,7 @@ public PgDbRoleSettingRecord() { /** * Create a detached, initialised PgDbRoleSettingRecord */ - public PgDbRoleSettingRecord(Long setdatabase, Long setrole, String[] setconfig) { + public PgDbRoleSettingRecord(@NonNull Long setdatabase, @NonNull Long setrole, @Nullable String[] setconfig) { super(PgDbRoleSetting.PG_DB_ROLE_SETTING); setSetdatabase(setdatabase); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDefaultAclRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDefaultAclRecord.java index faaf25d..f720258 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDefaultAclRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgDefaultAclRecord.java @@ -10,6 +10,7 @@ import org.jooq.Record1; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; /** @@ -30,7 +31,7 @@ public class PgDefaultAclRecord extends UpdatableRecordImpl /** * Setter for pg_catalog.pg_default_acl.oid. */ - public PgDefaultAclRecord setOid(Long value) { + public PgDefaultAclRecord setOid(@NonNull Long value) { set(0, value); return this; } @@ -38,6 +39,7 @@ public PgDefaultAclRecord setOid(Long value) { /** * Getter for pg_catalog.pg_default_acl.oid. */ + @NonNull public Long getOid() { return (Long) get(0); } @@ -45,7 +47,7 @@ public Long getOid() { /** * Setter for pg_catalog.pg_default_acl.defaclrole. */ - public PgDefaultAclRecord setDefaclrole(Long value) { + public PgDefaultAclRecord setDefaclrole(@NonNull Long value) { set(1, value); return this; } @@ -53,6 +55,7 @@ public PgDefaultAclRecord setDefaclrole(Long value) { /** * Getter for pg_catalog.pg_default_acl.defaclrole. */ + @NonNull public Long getDefaclrole() { return (Long) get(1); } @@ -60,7 +63,7 @@ public Long getDefaclrole() { /** * Setter for pg_catalog.pg_default_acl.defaclnamespace. */ - public PgDefaultAclRecord setDefaclnamespace(Long value) { + public PgDefaultAclRecord setDefaclnamespace(@NonNull Long value) { set(2, value); return this; } @@ -68,6 +71,7 @@ public PgDefaultAclRecord setDefaclnamespace(Long value) { /** * Getter for pg_catalog.pg_default_acl.defaclnamespace. */ + @NonNull public Long getDefaclnamespace() { return (Long) get(2); } @@ -75,7 +79,7 @@ public Long getDefaclnamespace() { /** * Setter for pg_catalog.pg_default_acl.defaclobjtype. */ - public PgDefaultAclRecord setDefaclobjtype(String value) { + public PgDefaultAclRecord setDefaclobjtype(@NonNull String value) { set(3, value); return this; } @@ -83,6 +87,7 @@ public PgDefaultAclRecord setDefaclobjtype(String value) { /** * Getter for pg_catalog.pg_default_acl.defaclobjtype. */ + @NonNull public String getDefaclobjtype() { return (String) get(3); } @@ -90,7 +95,7 @@ public String getDefaclobjtype() { /** * Setter for pg_catalog.pg_default_acl.defaclacl. */ - public PgDefaultAclRecord setDefaclacl(String[] value) { + public PgDefaultAclRecord setDefaclacl(@NonNull String[] value) { set(4, value); return this; } @@ -98,6 +103,7 @@ public PgDefaultAclRecord setDefaclacl(String[] value) { /** * Getter for pg_catalog.pg_default_acl.defaclacl. */ + @NonNull public String[] getDefaclacl() { return (String[]) get(4); } @@ -107,6 +113,7 @@ public String[] getDefaclacl() { // ------------------------------------------------------------------------- @Override + @NonNull public Record1 key() { return (Record1) super.key(); } @@ -125,7 +132,7 @@ public PgDefaultAclRecord() { /** * Create a detached, initialised PgDefaultAclRecord */ - public PgDefaultAclRecord(Long oid, Long defaclrole, Long defaclnamespace, String defaclobjtype, String[] defaclacl) { + public PgDefaultAclRecord(@NonNull Long oid, @NonNull Long defaclrole, @NonNull Long defaclnamespace, @NonNull String defaclobjtype, @NonNull String[] defaclacl) { super(PgDefaultAcl.PG_DEFAULT_ACL); setOid(oid); diff --git a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgNamespaceRecord.java b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgNamespaceRecord.java index 1653d2d..160625a 100644 --- a/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgNamespaceRecord.java +++ b/generated/src/main/java/it/aboutbits/postgresql/core/infrastructure/persistence/tables/records/PgNamespaceRecord.java @@ -10,6 +10,8 @@ import org.jooq.Record1; import org.jooq.impl.UpdatableRecordImpl; +import org.jspecify.annotations.NonNull; +import org.jspecify.annotations.Nullable; /** @@ -30,7 +32,7 @@ public class PgNamespaceRecord extends UpdatableRecordImpl { /** * Setter for pg_catalog.pg_namespace.oid. */ - public PgNamespaceRecord setOid(Long value) { + public PgNamespaceRecord setOid(@NonNull Long value) { set(0, value); return this; } @@ -38,6 +40,7 @@ public PgNamespaceRecord setOid(Long value) { /** * Getter for pg_catalog.pg_namespace.oid. */ + @NonNull public Long getOid() { return (Long) get(0); } @@ -45,7 +48,7 @@ public Long getOid() { /** * Setter for pg_catalog.pg_namespace.nspname. */ - public PgNamespaceRecord setNspname(String value) { + public PgNamespaceRecord setNspname(@NonNull String value) { set(1, value); return this; } @@ -53,6 +56,7 @@ public PgNamespaceRecord setNspname(String value) { /** * Getter for pg_catalog.pg_namespace.nspname. */ + @NonNull public String getNspname() { return (String) get(1); } @@ -60,7 +64,7 @@ public String getNspname() { /** * Setter for pg_catalog.pg_namespace.nspowner. */ - public PgNamespaceRecord setNspowner(Long value) { + public PgNamespaceRecord setNspowner(@NonNull Long value) { set(2, value); return this; } @@ -68,6 +72,7 @@ public PgNamespaceRecord setNspowner(Long value) { /** * Getter for pg_catalog.pg_namespace.nspowner. */ + @NonNull public Long getNspowner() { return (Long) get(2); } @@ -75,7 +80,7 @@ public Long getNspowner() { /** * Setter for pg_catalog.pg_namespace.nspacl. */ - public PgNamespaceRecord setNspacl(String[] value) { + public PgNamespaceRecord setNspacl(@Nullable String[] value) { set(3, value); return this; } @@ -83,6 +88,7 @@ public PgNamespaceRecord setNspacl(String[] value) { /** * Getter for pg_catalog.pg_namespace.nspacl. */ + @Nullable public String[] getNspacl() { return (String[]) get(3); } @@ -92,6 +98,7 @@ public String[] getNspacl() { // ------------------------------------------------------------------------- @Override + @NonNull public Record1 key() { return (Record1) super.key(); } @@ -110,7 +117,7 @@ public PgNamespaceRecord() { /** * Create a detached, initialised PgNamespaceRecord */ - public PgNamespaceRecord(Long oid, String nspname, Long nspowner, String[] nspacl) { + public PgNamespaceRecord(@NonNull Long oid, @NonNull String nspname, @NonNull Long nspowner, @Nullable String[] nspacl) { super(PgNamespace.PG_NAMESPACE); setOid(oid);