Class DeleteStatementDefault
java.lang.Object
org.spincast.plugins.jdbc.statements.StatementBase
org.spincast.plugins.jdbc.statements.DeleteStatementDefault
- All Implemented Interfaces:
DeleteStatement
,Statement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
delete()
Execute the delete query and return the number of affected rows.<T> List<T>
delete
(ResultSetHandler<T> resultSetHandler) Execute the delete query and return a result set.protected PreparedStatement
getStatementWithParamsAdded
(Connection connection) 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
-
DeleteStatementDefault
-
-
Method Details
-
getStatementWithParamsAdded
-
delete
public int delete()Description copied from interface:DeleteStatement
Execute the delete query and return the number of affected rows.- Specified by:
delete
in interfaceDeleteStatement
-
delete
Description copied from interface:DeleteStatement
Execute the delete query and return a result set.This can be used with a
RETURNING
clause.- Specified by:
delete
in interfaceDeleteStatement
-