public int delete ( DatabaseConnection databaseConnection , PreparedDelete < T > preparedDelete ) throws SQLException { CompiledStatement compiledStatement = preparedDelete . compile ( databaseConnection , StatementType . DELETE ) ; try { int result = compiledStatement . runUpdate ( ) ; if ( dao != null && ! localIsInBatchMode . get ( ) ) { dao . notifyChanges ( ) ; } return result ; } finally { IOUtils . closeThrowSqlException ( compiledStatement , "compiled statement" ) ; } }
Delete rows that match the prepared statement .