Collection<BioSource> bioSources = getDaoFactory().getBioSourceDao().getByTaxonId( taxId );
Collection<BioSource> bioSources = getDaoFactory().getBioSourceDao().getByTaxonId( taxId );
Collection<BioSource> bioSources = getDaoFactory().getBioSourceDao().getByTaxonId( taxId );
/** * TODO: uniqueness - taxid,celltype,tissue */ protected BioSource fetchFromDataSource(BioSource intactObject) { if (intactObject.getTaxId() == null) { throw new IllegalArgumentException("Organism without a tax id"); } // TODO: this will fail with specific celltype return getIntactContext().getDataContext().getDaoFactory() .getBioSourceDao().getByTaxonIdUnique(intactObject.getTaxId()); }
BioSource result = getDaoFactory().getBioSourceDao().getByAc( ac ); if ( result == null ) {
BioSourceDao bsDao = daoFactory.getBioSourceDao(); BioSource biosource = bsDao.getByTaxonIdUnique( taxid );
BioSource result = getDaoFactory().getBioSourceDao().getByAc(ac); if ( result == null ) {
try { Collection bioSources = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBioSourceDao().getByShortLabelLike(shortlabel);
try { Collection bioSources = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBioSourceDao().getByShortLabelLike(shortlabel);
try { Collection bioSources = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBioSourceDao().getByShortLabelLike(shortlabel);
BioSourceDao sourceDao = daoFactory.getBioSourceDao(); sourceDao.saveOrUpdate( bioSource );
IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBioSourceDao().update( bioSource );
.getBioSourceDao().getByTaxonId(taxid); IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCurrentInstance(IntactContext.getCurrentInstance()).getBioSourceDao().persist( bs ); .getBioSourceDao().update( bs );
.getBioSourceDao().getByTaxonId(taxid); IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCurrentInstance(IntactContext.getCurrentInstance()).getBioSourceDao().persist( bs ); .getBioSourceDao().update( bs );
.getBioSourceDao().getByTaxonId(taxid); IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCurrentInstance(IntactContext.getCurrentInstance()).getBioSourceDao().persist( bs ); .getBioSourceDao().update( bs );