public class UpdateStatementDefault extends StatementBase implements UpdateStatement
| Constructor and Description |
|---|
UpdateStatementDefault(Connection connection,
QueryResultFactory queryResultFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createUniqueParamName() |
protected PreparedStatement |
getStatementWithParamsAdded(Connection connection) |
void |
setCase(String paramName,
String columnNameToCheck,
Map<?,?> map)
Adds a
CASE statement, ugin the key and values
of the given map. |
QueryResult |
update() |
addCurrentParamsToStatement, addParam, addParamsToStatement, clearParams, clearSql, clearSql, close, close, getConnection, getIndexMap, getOriginalQuery, getParams, getParsedQuery, getQueryBuilder, getQueryResultFactory, getSql, getSqlFormmatter, getStaticTokens, parse, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInteger, setLong, setString, sql, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearSql, clearSql, getSql, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInteger, setLong, setString, sqlpublic UpdateStatementDefault(Connection connection, QueryResultFactory queryResultFactory)
protected PreparedStatement getStatementWithParamsAdded(Connection connection)
public QueryResult update()
update in interface UpdateStatementpublic void setCase(String paramName, String columnNameToCheck, Map<?,?> map)
UpdateStatementCASE statement, ugin the key and values
of the given map.
For example :
CASE
WHEN mapKey1 = 1 then mapVal1
WHEN mapKey2 = 2 then mapVal2
END
setCase in interface UpdateStatementprotected String createUniqueParamName()
Copyright © 2017. All rights reserved.