From a0010db7e7d9f86fcaeed8645ca8a6c92725dd88 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sun, 25 Apr 2021 11:08:24 +0200 Subject: [PATCH] [jOOQ/jOOQ#11800] Fields.field() methods should add better documentation about what it means when null is returned --- jOOQ/src/main/java/org/jooq/Fields.java | 80 +++++++++++++++---------- 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/Fields.java b/jOOQ/src/main/java/org/jooq/Fields.java index 60dcca1f62..b8e4a8a0f0 100644 --- a/jOOQ/src/main/java/org/jooq/Fields.java +++ b/jOOQ/src/main/java/org/jooq/Fields.java @@ -46,7 +46,7 @@ import org.jetbrains.annotations.Nullable; /** * A common super type for various types that can provide a set of fields, - * similar to a {@link Record}. + * similar to a {@link Table} or a {@link Record}. *

* Not all implementations actually know their fields. For example, * when using plain SQL templates ({@link DSL#field(String)}) or tables @@ -58,26 +58,25 @@ import org.jetbrains.annotations.Nullable; public interface Fields { /** - * Get all fields. + * Get all fields known to this type. */ @NotNull Field[] fields(); /** - * Get all fields as a {@link Row}. + * Get all fields known to this type as a {@link Row}. */ @NotNull Row fieldsRow(); /** - * Get this table's fields as a {@link Stream}, if this table knows its - * field references. + * Get all fields known to this type as a {@link Stream}. */ @NotNull Stream> fieldStream(); /** - * Get a field by field reference. + * Get a field known to this type by field reference. *

* This will return: *