Class UpdateStatementDefault
java.lang.Object
org.spincast.plugins.jdbc.statements.StatementBase
org.spincast.plugins.jdbc.statements.UpdateStatementDefault
- All Implemented Interfaces:
- Statement,- UpdateStatement
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringprotected PreparedStatementgetStatementWithParamsAdded(Connection connection) voidAdds aCASEstatement, using the key and values of the given map.intupdate()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.StatementBaseaddCurrentParamsToStatement, 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, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spincast.plugins.jdbc.statements.StatementclearSql, clearSql, getSql, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInStringFromEnumNames, setInteger, setLong, setLongList, setString, sql
- 
Constructor Details- 
UpdateStatementDefault
 
- 
- 
Method Details- 
getStatementWithParamsAdded
- 
updatepublic int update()Description copied from interface:UpdateStatementExecute the update and return the number of affected rows.- Specified by:
- updatein interface- UpdateStatement
 
- 
updateDescription copied from interface:UpdateStatementExecute the update and return a result set.This can be used with a RETURNINGclause.- Specified by:
- updatein interface- UpdateStatement
 
- 
setCaseDescription copied from interface:UpdateStatementAdds aCASEstatement, 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:
- setCasein interface- UpdateStatement
 
- 
createUniqueParamName
 
-