From 9e9cdf5c8f6b31b6b06876b4ccb3d8fb872294ab Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sun, 2 Dec 2012 12:57:40 +0100 Subject: [PATCH] [#1987] Allow for reading data from Iterables, arrays, Maps through Record.from() - Added support for loading from arrays --- .../src/org/jooq/test/_/testcases/FetchTests.java | 3 +++ jOOQ/src/main/java/org/jooq/Record.java | 13 +++++++++---- .../src/main/java/org/jooq/impl/AbstractRecord.java | 5 +++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/FetchTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/FetchTests.java index d09e1c4969..cc39247c50 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/FetchTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/FetchTests.java @@ -331,8 +331,11 @@ extends BaseTestIf source is a {@link Map} Loading of data is - * delegated to {@link #fromMap(Map)}

If any JPA {@link Column} - * annotations are found on the {@link Class} of the provided - * source, only those are used. Matching candidates are:

+ *

If source is an array

+ *

+ * Loading of data is delegated to {@link #fromArray(Object...)} + *

If source is a {@link Map}

+ *

+ * Loading of data is delegated to {@link #fromMap(Map)} + *

If any JPA {@link Column} annotations are found on the {@link Class} + * of the provided source, only those are used. Matching + * candidates are:

*