public int deleteCascade ( Collection < Contents > contentsCollection , boolean userTable ) throws SQLException { int count = 0 ; if ( contentsCollection != null ) { for ( Contents contents : contentsCollection ) { count += deleteCascade ( contents , userTable ) ; } } return count ; }
Delete the collection of Contents cascading optionally including the user table