public class Batch extends Object
| Modifier and Type | Method and Description |
|---|---|
Batch |
add(String sql)
Add a statement to the batch
|
This |
addCustomizer(StatementCustomizer customizer)
Provides a means for custom statement modification.
|
void |
close() |
int[] |
execute()
Execute all the queued up statements
|
ConfigRegistry |
getConfig()
Returns the configuration registry associated with this object.
|
StatementContext |
getContext() |
Handle |
getHandle() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, define, getConfig, registerArgument, registerArrayType, registerArrayType, registerArrayType, registerCollector, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerExtension, registerRowMapper, registerRowMapper, registerRowMapper, setMapKeyColumn, setMapValueColumn, setSqlArrayArgumentStrategy, setSqlParser, setTemplateEngine, setTimingCollectorpublic Batch(Handle handle)
public Batch add(String sql)
sql - SQL to be added to the batch, possibly a named statementpublic int[] execute()
public final This addCustomizer(StatementCustomizer customizer)
Query.setMaxRows(int)customizer - instance to be used to customize a statementpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ConfigRegistry getConfig()
ConfigurablegetConfig in interface Configurable<This>public final StatementContext getContext()
public Handle getHandle()
Copyright © 2017. All rights reserved.