public class Update extends SQLStatement<Update>
Modifier and Type | Method and Description |
---|---|
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() |
int |
execute()
Execute the statement
|
GeneratedKeys<Map<String,Object>> |
executeAndReturnGeneratedKeys() |
<GeneratedKeyType> |
executeAndReturnGeneratedKeys(ResultColumnMapper<GeneratedKeyType> mapper) |
<GeneratedKeyType> |
executeAndReturnGeneratedKeys(ResultSetMapper<GeneratedKeyType> mapper) |
<GeneratedKeyType> |
executeAndReturnGeneratedKeys(ResultSetMapper<GeneratedKeyType> mapper,
String columnName)
Execute the statement and returns any auto-generated keys.
|
protected ConcreteStatementContext |
getConcreteContext() |
StatementContext |
getContext()
Obtain the statement context associated with this statement
|
protected Foreman |
getForeman() |
protected Collection<StatementCustomizer> |
getStatementCustomizers() |
addStatementCustomizer, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bindASCIIStream, bindASCIIStream, bindAsInt, bindAsInt, bindAsInt, bindAsInt, bindBinaryStream, bindBinaryStream, bindBySqlType, bindBySqlType, bindFromMap, bindFromProperties, bindNamedArgumentFinder, bindNull, bindNull, cleanupHandle, cleanupHandle, clearBindings, define, define, dynamicBind, getContainerMapperRegistry, getHandle, getLog, getParams, getRewriter, getSql, getStatementBuilder, getStatementLocator, getTimingCollector, internalExecute, registerArgumentFactory, registerContainerFactory, setFetchDirection, setFetchDirection2, setQueryTimeout, setStatementLocator, setStatementLocator2, setStatementRewriter, setStatementRewriter2
public int execute()
public GeneratedKeys<Map<String,Object>> executeAndReturnGeneratedKeys()
public <GeneratedKeyType> GeneratedKeys<GeneratedKeyType> executeAndReturnGeneratedKeys(ResultColumnMapper<GeneratedKeyType> mapper)
public <GeneratedKeyType> GeneratedKeys<GeneratedKeyType> executeAndReturnGeneratedKeys(ResultSetMapper<GeneratedKeyType> mapper)
public <GeneratedKeyType> GeneratedKeys<GeneratedKeyType> executeAndReturnGeneratedKeys(ResultSetMapper<GeneratedKeyType> mapper, String columnName)
Statement.getGeneratedKeys()
method.mapper
- the mapper to generate the resulting key objectcolumnName
- name of the column that generates the keyprotected 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.