The documentation of Statement.executeBatch()
is not clear on this, but I assume that calling it will empty the Statement
object's current list of SQL commands in the same way as clearBatch()
does. I'm also assuming the same is true for PreparedStatement
.
I suppose it is possible to continue using the Statement
after calling Statement.executeBatch()
, i.e. add another batch of commands and execute them.