public int deleteByIdCascade ( String id , boolean userTable ) throws SQLException { int count = 0 ; if ( id != null ) { Contents contents = queryForId ( id ) ; if ( contents != null ) { count = deleteCascade ( contents , userTable ) ; } else if ( userTable ) { dropTable ( id ) ; } } return count ; }
Delete a Contents by id cascading optionally including the user table