| Constructor and Description |
|---|
SampleDAOHibernate()
Constructor for SampleDAOHibernate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Sample sample)
delete.
|
List<Sample> |
findByCriteria(String criteria,
boolean isCaseSens)
findByCriteria.
|
Sample |
findByID(Integer id)
findByID.
|
Sample |
findByName(String name)
findByName.
|
List<Sample> |
findByOwnerID(Integer registrationId)
findByOwnerID.
|
Sample |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
Sample |
findByTitle(String title)
findByTitle.
|
Map<Integer,Integer> |
getCountFiles(Integer expId)
getCountFiles.
|
Map<Integer,Integer> |
getCountFiles(Integer expId,
String metaType)
getCountFiles.
|
List<File> |
getFiles(Integer sampleId)
getFiles.
|
List<File> |
getFiles(Integer sampleId,
String metaType)
getFiles.
|
Sample |
getRootSample(Sample sample)
getRootSample.
|
List<Sample> |
getRootSamples(Study study)
getRootSamples.
|
Integer |
insert(Registration registration,
Sample sample)
insert.
|
Integer |
insert(Sample sample)
insert.
|
boolean |
isHasFile(Integer sampleId)
isHasFile.
|
boolean |
isHasFile(Integer sampleId,
String metaType)
isHasFile.
|
List<Sample> |
list()
list.
|
List<Sample> |
listComplete()
listComplete.
|
List<Sample> |
listIncomplete()
listIncomplete.
|
List<Sample> |
listSample(Registration registaration)
listSample.
|
List<Sample> |
matchName(String name)
findByName.
|
void |
update(Registration registration,
Sample sample)
update.
|
void |
update(Sample sample)
update.
|
Sample |
updateDetached(Registration registration,
Sample sample)
updateDetached.
|
Sample |
updateDetached(Sample sample)
updateDetached.
|
public SampleDAOHibernate()
Constructor for SampleDAOHibernate.
public Integer insert(Sample sample)
insert.
Inserts an instance of Sample into the database.public void update(Sample sample)
update.
Updates an instance of Sample in the database.public void delete(Sample sample)
delete.
This deletion will result in just the sample being deleted but the 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 boolean isHasFile(Integer sampleId)
isHasFile.
public Map<Integer,Integer> getCountFiles(Integer expId)
getCountFiles.
getCountFiles in interface SampleDAOexpId - a Integer object.Map object.public Map<Integer,Integer> getCountFiles(Integer expId, String metaType)
getCountFiles.
getCountFiles in interface SampleDAOexpId - a Integer object.metaType - a String object.Map object.public Sample findByTitle(String title)
findByTitle.
Finds an instance of Sample in the database by the Experiment name.findByTitle in interface SampleDAOtitle - a String object.Sample object.public Sample findByName(String name)
findByName.
Finds an instance of Sample in the database by the Sample emailAddress.findByName in interface SampleDAOname - a String object.Sample object.public List<Sample> matchName(String name)
findByName.
Finds an instance of Sample in the database by the Sample emailAddress.public Sample findByID(Integer id)
findByID.
Finds an instance of Sample in the database by the Sample ID.public Sample findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession in interface SampleDAOswAccession - a Integer object.Sample object.public List<Sample> findByOwnerID(Integer registrationId)
findByOwnerID.
findByOwnerID in interface SampleDAOregistrationId - a Integer object.List object.public List<Sample> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria in interface SampleDAOcriteria - a String object.isCaseSens - a boolean.List object.public List<Sample> listComplete()
listComplete.
listComplete in interface SampleDAOList object.public List<Sample> listIncomplete()
listIncomplete.
listIncomplete in interface SampleDAOList object.public List<Sample> listSample(Registration registaration)
listSample.
listSample in interface SampleDAOregistaration - List object.public List<Sample> getRootSamples(Study study)
getRootSamples.
getRootSamples in interface SampleDAOstudy - a Study object.List object.public Sample getRootSample(Sample sample)
getRootSample.
getRootSample in interface SampleDAOsample - a Sample object.Sample object.public Sample updateDetached(Sample sample)
updateDetached.
updateDetached in interface SampleDAOsample - a Sample object.Sample object.public void update(Registration registration, Sample sample)
update.
update in interface SampleDAOregistration - a Registration object.sample - a Sample object.public Integer insert(Registration registration, Sample sample)
insert.
insert in interface SampleDAOregistration - a Registration object.sample - a Sample object.Integer object.public Sample updateDetached(Registration registration, Sample sample)
updateDetached.
updateDetached in interface SampleDAOregistration - a Registration object.sample - a Sample object.Sample object.Copyright © 2015 SeqWare. All rights reserved.