This commit is contained in:
Tadgh 2020-07-17 09:00:15 -07:00
parent 6bb92717f5
commit 92461b6346
1 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,11 @@ public class EmpiLinkDaoSvc {
return myEmpiLinkDao.findAll(example);
}
/**
* Delete all {@link EmpiLink} entities, and return all resource PIDs from the source of the relationship.
*
* @return A list of Long representing the related Person Pids.
*/
public List<Long> deleteAllEmpiLinksAndReturnPersonPids() {
List<EmpiLink> all = myEmpiLinkDao.findAll();
return deleteEmpiLinksAndReturnPersonPids(all);