Remove unused method
This commit is contained in:
parent
0ef1665061
commit
1d6a26bf1d
|
@ -30,7 +30,6 @@ import ca.uhn.fhir.jpa.dao.data.IEmpiLinkDao;
|
|||
import ca.uhn.fhir.jpa.dao.index.IdHelperService;
|
||||
import ca.uhn.fhir.jpa.entity.EmpiLink;
|
||||
import org.hl7.fhir.instance.model.api.IBaseResource;
|
||||
import org.hl7.fhir.instance.model.api.IIdType;
|
||||
import org.slf4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Example;
|
||||
|
@ -259,24 +258,6 @@ public class EmpiLinkDaoSvc {
|
|||
return deleteEmpiLinksAndReturnPersonPids(allOfType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a target type, and a resource ID, delete the target's {@link EmpiLink} entities, and return the Person Pids
|
||||
* that were on the source end of each relationship.
|
||||
*
|
||||
* @param theTargetType The empi target type of the resource
|
||||
* @param theId The particular target resource ID.
|
||||
*
|
||||
* @return A list of longs, each representing the source person of an {@link EmpiLink} that was deleted.
|
||||
*/
|
||||
public List<Long> deleteEmpiLinksAndReturnPersonPidsForTypeAndTarget(String theTargetType, IIdType theId) {
|
||||
EmpiLink link = new EmpiLink();
|
||||
link.setEmpiTargetType(theTargetType);
|
||||
link.setTargetPid(myIdHelperService.getPidOrThrowException(theId));
|
||||
Example<EmpiLink> exampleLink = Example.of(link);
|
||||
List<EmpiLink> allOfType = myEmpiLinkDao.findAll(exampleLink);
|
||||
return deleteEmpiLinksAndReturnPersonPids(allOfType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Persist an EmpiLink to the database.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue