@Singleton public class StudyLinkDao extends AbstractDao
jpa
Modifier and Type | Method and Description |
---|---|
int |
countAll() |
int |
countByBatchAndWorkerType(Batch batch,
java.lang.String workerType) |
StudyLink |
create(StudyLink studyLink) |
java.util.List<StudyLink> |
findAllByBatchAndWorkerType(Batch batch,
java.lang.String workerType) |
java.util.Optional<StudyLink> |
findByBatchAndWorker(Batch batch,
Worker worker) |
StudyLink |
findByStudyCode(java.lang.String studyCode) |
java.util.Optional<StudyLink> |
findFirstByBatchAndWorkerType(Batch batch,
java.lang.String workerType) |
void |
remove(StudyLink studyLink) |
int |
removeAllByBatch(Batch batch) |
void |
update(StudyLink studyLink) |
merge, persist, refresh, remove
public void remove(StudyLink studyLink)
public void update(StudyLink studyLink)
public StudyLink findByStudyCode(java.lang.String studyCode)
public int countAll()
public int countByBatchAndWorkerType(Batch batch, java.lang.String workerType)
public java.util.List<StudyLink> findAllByBatchAndWorkerType(Batch batch, java.lang.String workerType)
public java.util.Optional<StudyLink> findFirstByBatchAndWorkerType(Batch batch, java.lang.String workerType)
public java.util.Optional<StudyLink> findByBatchAndWorker(Batch batch, Worker worker)
public int removeAllByBatch(Batch batch)