@Retention(value=RUNTIME) @Target(value=METHOD) public @interface SqlBatch
Unfortunately, because of how batches work, statement customizers and sql statement customizers which affect SQL generation will *not* work with batches. This primarily effects statement location and rewriting, which will always use the values defined on the bound Handle.
If you want to chunk up the logical batch into a number of smaller batches (say around 1000 rows at
a time in order to not wreck havoc on the transaction log, you should see
BatchChunkSize
Modifier and Type | Optional Element and Description |
---|---|
boolean |
transactional
Should the batch, or batch chunks be executed in a transaction.
|
String |
value
SQL String (or name)
|
public abstract boolean transactional
public abstract String value
Copyright © 2018. All rights reserved.