From e958dc2908bc365a87706bf2423c529d5a027deb Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sat, 16 Feb 2013 09:30:35 +0100 Subject: [PATCH] [#2205] Add Result Executor.newResult(Table) to generate custom results --- jOOQ/src/main/java/org/jooq/impl/Executor.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/Executor.java b/jOOQ/src/main/java/org/jooq/impl/Executor.java index 41e9df10c3..cd7c208dc3 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Executor.java +++ b/jOOQ/src/main/java/org/jooq/impl/Executor.java @@ -5225,6 +5225,20 @@ public class Executor implements Configuration { return result; } + /** + * Create a new empty {@link Result}. + *

+ * The result is attached to this {@link Configuration} by default. This + * result can be used as a container for records. + * + * @param The generic record type + * @param table The table holding records of type <R> + * @return The new result + */ + public final Result newResult(Table table) { + return new ResultImpl(this, table.fields()); + } + // ------------------------------------------------------------------------- // XXX Executing queries // -------------------------------------------------------------------------