public class Batch extends Object
Modifier and Type | Method and Description |
---|---|
Batch |
add(String sql)
Add a statement to the batch
|
protected void |
addCleanable(Cleanable cleanable) |
protected void |
addCustomizer(StatementCustomizer customizer) |
protected void |
addCustomizers(Collection<StatementCustomizer> customizers) |
protected void |
afterExecution(PreparedStatement stmt) |
protected void |
beforeExecution(PreparedStatement stmt) |
protected void |
cleanup() |
Batch |
define(String key,
Object value)
Specify a value on the statement context for this batch
|
int[] |
execute()
Execute all the queued up statements
|
protected ConcreteStatementContext |
getConcreteContext() |
StatementContext |
getContext()
Obtain the statement context associated with this statement
|
protected Foreman |
getForeman() |
protected Collection<StatementCustomizer> |
getStatementCustomizers() |
public Batch add(String sql)
sql
- SQL to be added to the batch, possibly a named statementpublic Batch define(String key, Object value)
public int[] execute()
protected void addCleanable(Cleanable cleanable)
protected void addCustomizer(StatementCustomizer customizer)
protected void addCustomizers(Collection<StatementCustomizer> customizers)
protected final void afterExecution(PreparedStatement stmt)
protected final void beforeExecution(PreparedStatement stmt)
protected final void cleanup()
protected final ConcreteStatementContext getConcreteContext()
public final StatementContext getContext()
protected final Foreman getForeman()
protected Collection<StatementCustomizer> getStatementCustomizers()
Copyright © 2018. All rights reserved.