CCP 1673     

Art. 1673.  Effect of dismissal with or without prejudice

A judgment of dismissal with prejudice shall have the effect of a final judgment of absolute dismissal after trial.  A judgment of dismissal without prejudice shall not constitute a bar to another suit on the same cause of action.