public class Batch extends Object
| Modifier and Type | Method and Description |
|---|---|
Batch |
add(String sql)
Add a statement to the batch
|
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, waitaddCustomizer, configure, define, getConfig, registerArgument, registerArrayType, registerArrayType, registerArrayType, registerArrayType, registerCollector, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerExtension, registerRowMapper, registerRowMapper, registerRowMapper, registerRowMapper, setMapKeyColumn, setMapValueColumn, setSqlArrayArgumentStrategy, setSqlLogger, setSqlParser, setTemplateEnginepublic Batch(Handle handle)
public Batch add(String sql)
sql - SQL to be added to the batch, possibly a named statementpublic int[] execute()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic ConfigRegistry getConfig()
ConfigurablegetConfig in interface Configurable<This>public final StatementContext getContext()
public Handle getHandle()
Copyright © 2019. All rights reserved.