Class Gene2GOAssociationServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<Gene2GOAssociation>
ubic.gemma.persistence.service.association.Gene2GOAssociationServiceImpl
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,Gene2GOAssociationService
,BaseImmutableService<Gene2GOAssociation>
,BaseReadOnlyService<Gene2GOAssociation>
,BaseService<Gene2GOAssociation>
@Service
public class Gene2GOAssociationServiceImpl
extends AbstractService<Gene2GOAssociation>
implements Gene2GOAssociationService, org.springframework.beans.factory.InitializingBean
- Author:
- klc
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log
-
Constructor Summary
ConstructorsConstructorDescriptionGene2GOAssociationServiceImpl
(Gene2GOAssociationDao mainDao, org.springframework.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
findAssociationByGene
(Gene gene) findAssociationByGenes
(Collection<Gene> genes) findByGene
(Gene gene) findByGenes
(Collection<Gene> genes) findByGOTermUris
(Collection<String> uris, Taxon taxon) Find all the genes that match any of the terms.Find all genes associated with a given set of GO terms, grouped by taxon.int
Remove all Gene2GO associations in batch.Methods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, remove, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.association.Gene2GOAssociationService
create, findOrCreate
-
Constructor Details
-
Gene2GOAssociationServiceImpl
@Autowired public Gene2GOAssociationServiceImpl(Gene2GOAssociationDao mainDao, org.springframework.cache.CacheManager cacheManager)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
findAssociationByGene
@Transactional(readOnly=true) public Collection<Gene2GOAssociation> findAssociationByGene(Gene gene) - Specified by:
findAssociationByGene
in interfaceGene2GOAssociationService
-
findAssociationByGenes
@Transactional(readOnly=true) public Collection<Gene2GOAssociation> findAssociationByGenes(Collection<Gene> genes) - Specified by:
findAssociationByGenes
in interfaceGene2GOAssociationService
-
findByGene
- Specified by:
findByGene
in interfaceGene2GOAssociationService
-
findByGenes
@Transactional(readOnly=true) public Map<Gene,Collection<Characteristic>> findByGenes(Collection<Gene> genes) - Specified by:
findByGenes
in interfaceGene2GOAssociationService
-
findByGOTermUris
@Transactional(readOnly=true) public Collection<Gene> findByGOTermUris(Collection<String> uris, @Nullable Taxon taxon) Description copied from interface:Gene2GOAssociationService
Find all the genes that match any of the terms.Used to fetch genes associated with a term + children.
- Specified by:
findByGOTermUris
in interfaceGene2GOAssociationService
-
findByGOTermUrisPerTaxon
@Transactional(readOnly=true) public Map<Taxon,Collection<Gene>> findByGOTermUrisPerTaxon(Collection<String> uris) Description copied from interface:Gene2GOAssociationService
Find all genes associated with a given set of GO terms, grouped by taxon.- Specified by:
findByGOTermUrisPerTaxon
in interfaceGene2GOAssociationService
-
removeAll
@Transactional public int removeAll()Description copied from interface:Gene2GOAssociationService
Remove all Gene2GO associations in batch.- Specified by:
removeAll
in interfaceGene2GOAssociationService
-