Hi Jon,

I see, that might be useful for some usecases. I think that adding
size() to org.jooq.Batch might indeed make sense. For
org.jooq.impl.BatchSingle, this would return the number of bind value
sets. For org.jooq.impl.BatchMultiple, this would return the number of
queries. This number would correspond to the length of the int[]
returned by Batch.execute()

I have registered #2028 for this:
https://github.com/jOOQ/jOOQ/issues/2028

Cheers
Lukas

2012/12/20 Jon Inloes <[email protected]>:
> Hi,
>
> I was wondering if it was possible to check how many times I've called .bind
> on my BatchBindStep object. I have a variable batch size (not known until
> run-time) and I need to know how many items I've lined up to batch. I could
> do this with an external counter, but since BatchBindStep/BatchSingle uses a
> List<Object[]>, I thought it would be nice if a method was added to call
> size() on the List.
>
> Thanks!

Reply via email to