Class GeneSetDaoImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractDao<GeneSet>
ubic.gemma.persistence.service.genome.gene.GeneSetDaoImpl
- All Implemented Interfaces:
BaseDao<GeneSet>,BaseVoEnabledDao<GeneSet,,DatabaseBackedGeneSetValueObject> GeneSetDao
@Repository
@ParametersAreNonnullByDefault
public class GeneSetDaoImpl
extends AbstractDao<GeneSet>
implements GeneSetDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
ubic.gemma.model.genome.gene.GeneSet.- Author:
- kelsey
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDoes a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).findByGene(Gene gene) findByName(String name) findByName(String name, Taxon taxon) intgetGeneCount(Long id) This method does not do any permissions filtering.Return all the taxa of the gene set members.Returns the taxon of an arbitrary member of the set.loadValueObject(GeneSet geneSet) Load a value object corresponding to an entityloadValueObjects(Collection<GeneSet> entities) Load value objects corresponding to entitiesfinal voidremove(Collection<GeneSet> entities) final voidRemove a persistent instanceintvoidfinal voidupdate(Collection<GeneSet> entities) final voidMethods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getEntityName, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, save, save, streamAll, streamAll, streamQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, create, findOrCreate, getElementClass, load, load, loadAll, loadReference, loadReference, reload, reload, remove, save, save, streamAll, streamAll
-
Constructor Details
-
GeneSetDaoImpl
-
-
Method Details
-
getGeneCount
Description copied from interface:GeneSetDaoThis method does not do any permissions filtering. It assumes that id the user can see the set, they can see all the members.- Specified by:
getGeneCountin interfaceGeneSetDao- Parameters:
id- gene set id- Returns:
- integer count of genes in set
-
getTaxon
Description copied from interface:GeneSetDaoReturns the taxon of an arbitrary member of the set.- Specified by:
getTaxonin interfaceGeneSetDao- Returns:
- the taxon, or null if the gene set does not have any member
-
getTaxa
Description copied from interface:GeneSetDaoReturn all the taxa of the gene set members.- Specified by:
getTaxain interfaceGeneSetDao
-
loadValueObject
Description copied from interface:BaseVoEnabledDaoLoad a value object corresponding to an entity- Specified by:
loadValueObjectin interfaceBaseVoEnabledDao<GeneSet,DatabaseBackedGeneSetValueObject> - Parameters:
geneSet- the entity to turn into a value object- Returns:
- a value object
-
loadValueObjectById
- Specified by:
loadValueObjectByIdin interfaceBaseVoEnabledDao<GeneSet,DatabaseBackedGeneSetValueObject> - Returns:
- a value object, or null if it could not be constructed
-
loadValueObjectByIdLite
- Specified by:
loadValueObjectByIdLitein interfaceGeneSetDao
-
loadValueObjects
Description copied from interface:BaseVoEnabledDaoLoad value objects corresponding to entities- Specified by:
loadValueObjectsin interfaceBaseVoEnabledDao<GeneSet,DatabaseBackedGeneSetValueObject> - Parameters:
entities- the entities to turn into value objects- Returns:
- a collection of value objects
-
loadValueObjectsByIds
- Specified by:
loadValueObjectsByIdsin interfaceBaseVoEnabledDao<GeneSet,DatabaseBackedGeneSetValueObject>
-
loadValueObjectsByIdsLite
- Specified by:
loadValueObjectsByIdsLitein interfaceGeneSetDao
-
loadAllValueObjects
- Specified by:
loadAllValueObjectsin interfaceBaseVoEnabledDao<GeneSet,DatabaseBackedGeneSetValueObject>
-
findByGene
- Specified by:
findByGenein interfaceGeneSetDao
-
findByName
- Specified by:
findByNamein interfaceGeneSetDao- Parameters:
name- uses the given name to do a name* search in the db- Returns:
- a collection of geneSets that match the given search term.
-
findByName
- Specified by:
findByNamein interfaceGeneSetDao
-
loadAll
- Specified by:
loadAllin interfaceGeneSetDao
-
find
Description copied from interface:BaseDaoDoes a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property). -
thaw
- Specified by:
thawin interfaceGeneSetDao- Parameters:
geneSet- gene set
-
removeAll
public int removeAll()- Specified by:
removeAllin interfaceGeneSetDao
-
update
-
update
-
remove
-
remove
Description copied from interface:BaseDaoRemove a persistent instance
-