@Singleton public class StudyDao extends AbstractDao
jpa
Modifier and Type | Method and Description |
---|---|
int |
count()
Returns the number of Study rows
|
int |
countTotal()
Returns the total number of Studys (including the deleted ones)
|
void |
create(Study study) |
java.util.List<Study> |
findAll() |
java.util.List<Study> |
findAllByUser(User user) |
Study |
findById(java.lang.Long id) |
java.util.List<Study> |
findByStudyResultIds(java.util.Collection<java.lang.Long> srids) |
java.util.List<Study> |
findByTitle(java.lang.String title)
Finds all studies with the given title and returns them in a list.
|
java.util.Optional<Study> |
findByUuid(java.lang.String uuid) |
java.util.List<java.lang.Long> |
findIdsByStudyResultIds(java.util.Collection<java.lang.Long> srids) |
void |
remove(Study study) |
void |
update(Study study) |
merge, persist, refresh, remove
public void create(Study study)
public void remove(Study study)
public void update(Study study)
public Study findById(java.lang.Long id)
public java.util.Optional<Study> findByUuid(java.lang.String uuid)
public java.util.List<Study> findByTitle(java.lang.String title)
public java.util.List<Study> findByStudyResultIds(java.util.Collection<java.lang.Long> srids)
public java.util.List<java.lang.Long> findIdsByStudyResultIds(java.util.Collection<java.lang.Long> srids)
public java.util.List<Study> findAll()
public int count()
public int countTotal()