| 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 StudyDAOisAsc - registration - a Registration object.List object.public List<Study> listMyShared(Registration registration, Boolean isAsc)
listMyShared.
listMyShared in interface StudyDAOisAsc - registration - a Registration object.List object.public List<Study> listSharedWithMe(Registration registration, Boolean isAsc)
listSharedWithMe.
listSharedWithMe in interface StudyDAOisAsc - 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 StudyDAOisAsc - 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 StudyDAOtitle - 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 StudyDAOswAccession - a Integer object.Study object.public List<Study> findByOwnerID(Integer registrationId)
findByOwnerID.
findByOwnerID in interface StudyDAOregistrationId - a Integer object.List object.public List<Study> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria in interface StudyDAOcriteria - a String object.isCaseSens - a boolean.List object.public List<Study> findByCriteria(String criteria)
findByCriteria.
findByCriteria in interface StudyDAOcriteria - a String object.List object.public Study updateDetached(Study study)
updateDetached.
updateDetached in interface StudyDAOstudy - a Study object.Study object.public void updateOwners(Integer swAccession)
updateOwners.
updateOwners in interface StudyDAOswAccession - a Integer object.public void update(Registration registration, Study study)
update.
update in interface StudyDAOregistration - a Registration object.study - a Study object.public Integer insert(Registration registration, Study study)
insert.
insert in interface StudyDAOstudy - registration - a Registration object.Integer object.public Study updateDetached(Registration registration, Study study)
updateDetached.
updateDetached in interface StudyDAOregistration - 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 StudyDAOstudy - the studystatus - the status of the workflow runs to countCopyright © 2015 SeqWare. All rights reserved.