Class UpdateStatementDefault
java.lang.Object
org.spincast.plugins.jdbc.statements.StatementBase
org.spincast.plugins.jdbc.statements.UpdateStatementDefault
- All Implemented Interfaces:
Statement
,UpdateStatement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected PreparedStatement
getStatementWithParamsAdded
(Connection connection) void
Adds aCASE
statement, using the key and values of the given map.int
update()
Execute the update and return the number of affected rows.<T> List<T>
update
(ResultSetHandler<T> resultSetHandler) Execute the update and return a result set.Methods inherited from class org.spincast.plugins.jdbc.statements.StatementBase
addCurrentParamsToStatement, addParam, addParamsToStatement, clearParams, clearSql, clearSql, close, close, copyParamsAndStaticTokensTo, getConnection, getIndexMap, getOriginalQuery, getParams, getParsedQuery, getQueryBuilder, getSql, getSqlFormmatter, getStaticTokens, parse, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInStringFromEnumNames, setInteger, setLong, setLongList, setParams, setStaticTokens, setString, sql, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.spincast.plugins.jdbc.statements.Statement
clearSql, clearSql, getSql, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInStringFromEnumNames, setInteger, setLong, setLongList, setString, sql
-
Constructor Details
-
UpdateStatementDefault
-
-
Method Details
-
getStatementWithParamsAdded
-
update
public int update()Description copied from interface:UpdateStatement
Execute the update and return the number of affected rows.- Specified by:
update
in interfaceUpdateStatement
-
update
Description copied from interface:UpdateStatement
Execute the update and return a result set.This can be used with a
RETURNING
clause.- Specified by:
update
in interfaceUpdateStatement
-
setCase
Description copied from interface:UpdateStatement
Adds aCASE
statement, using the key and values of the given map. For example :CASE WHEN mapKey1 = 1 then mapVal1 WHEN mapKey2 = 2 then mapVal2 END
- Specified by:
setCase
in interfaceUpdateStatement
-
createUniqueParamName
-