public int deleteByIdCascade ( Long id ) throws SQLException { int count = 0 ; if ( id != null ) { Metadata metadata = queryForId ( id ) ; if ( metadata != null ) { count = deleteCascade ( metadata ) ; } } return count ; }
Delete a Metadata by id cascading