Constructor and Description |
---|
StudyDAOHibernate()
Constructor for StudyDAOHibernate.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Study study)
delete.
|
List<Study> |
findByCriteria(String criteria)
findByCriteria.
|
List<Study> |
findByCriteria(String criteria,
boolean isCaseSens)
findByCriteria.
|
Study |
findByID(Integer expID)
findByID.
|
List<Study> |
findByOwnerID(Integer registrationId)
findByOwnerID.
|
Study |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
List<Study> |
findByTitle(String title)
findByTitle.
|
List<File> |
getFiles(Integer studyId)
getFiles.
|
List<File> |
getFiles(Integer studyId,
String metaType)
getFiles.
|
int |
getStatusCount(Study study,
WorkflowRunStatus status)
Count the number of workflow runs with the given status, under the given study
|
Integer |
insert(Registration registration,
Study study)
insert.
|
Integer |
insert(Study study)
insert.
|
boolean |
isHasFile(Integer studyId)
isHasFile.
|
boolean |
isHasFile(Integer studyId,
String metaType)
isHasFile.
|
List<Study> |
list()
list.
|
List<Study> |
list(Registration registration,
Boolean isAsc)
list.
|
List<Study> |
listMyShared(Registration registration,
Boolean isAsc)
listMyShared.
|
List<Study> |
listSharedWithMe(Registration registration,
Boolean isAsc)
listSharedWithMe.
|
List<Study> |
listStudyHasFile(Registration registration,
String metaType,
Boolean isAsc)
listStudyHasFile.
|
void |
merge(Study study)
merge.
|
void |
update(Registration registration,
Study study)
update.
|
void |
update(Study study)
update.
|
Study |
updateDetached(Registration registration,
Study study)
updateDetached.
|
Study |
updateDetached(Study study)
updateDetached.
|
void |
updateOwners(Integer swAccession)
updateOwners.
|
public void update(Study study)
update.
public void merge(Study study)
merge.
public void delete(Study study)
delete.
This deletion will result in just the study and experiments being deleted but the samples and IUS will remain. This will potentially cause orphans which is not really at all good. A better solution is to never delete but just use a deletion attribute.public List<Study> list(Registration registration, Boolean isAsc)
list.
list
in interface StudyDAO
isAsc
- registration
- a Registration
object.List
object.public List<Study> listMyShared(Registration registration, Boolean isAsc)
listMyShared.
listMyShared
in interface StudyDAO
isAsc
- registration
- a Registration
object.List
object.public List<Study> listSharedWithMe(Registration registration, Boolean isAsc)
listSharedWithMe.
listSharedWithMe
in interface StudyDAO
isAsc
- registration
- a Registration
object.List
object.public boolean isHasFile(Integer studyId)
isHasFile.
public List<Study> listStudyHasFile(Registration registration, String metaType, Boolean isAsc)
listStudyHasFile.
listStudyHasFile
in interface StudyDAO
isAsc
- registration
- a Registration
object.metaType
- a String
object.List
object.public List<Study> findByTitle(String title)
findByTitle.
Finds an instance of Study in the database by the Study name.findByTitle
in interface StudyDAO
title
- a String
object.Study
object.public Study findByID(Integer expID)
findByID.
Finds an instance of Study in the database by the Study ID.public Study findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession
in interface StudyDAO
swAccession
- a Integer
object.Study
object.public List<Study> findByOwnerID(Integer registrationId)
findByOwnerID.
findByOwnerID
in interface StudyDAO
registrationId
- a Integer
object.List
object.public List<Study> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria
in interface StudyDAO
criteria
- a String
object.isCaseSens
- a boolean.List
object.public List<Study> findByCriteria(String criteria)
findByCriteria.
findByCriteria
in interface StudyDAO
criteria
- a String
object.List
object.public Study updateDetached(Study study)
updateDetached.
updateDetached
in interface StudyDAO
study
- a Study
object.Study
object.public void updateOwners(Integer swAccession)
updateOwners.
updateOwners
in interface StudyDAO
swAccession
- a Integer
object.public void update(Registration registration, Study study)
update.
update
in interface StudyDAO
registration
- a Registration
object.study
- a Study
object.public Integer insert(Registration registration, Study study)
insert.
insert
in interface StudyDAO
study
- registration
- a Registration
object.Integer
object.public Study updateDetached(Registration registration, Study study)
updateDetached.
updateDetached
in interface StudyDAO
registration
- a Registration
object.study
- a Study
object.Study
object.public int getStatusCount(Study study, WorkflowRunStatus status)
Count the number of workflow runs with the given status, under the given study
getStatusCount
in interface StudyDAO
study
- the studystatus
- the status of the workflow runs to countCopyright © 2015 SeqWare. All rights reserved.