Class BibliographicReferenceDaoImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractDao<BibliographicReference>
ubic.gemma.persistence.service.AbstractVoEnabledDao<BibliographicReference,BibliographicReferenceValueObject>
ubic.gemma.persistence.service.common.description.BibliographicReferenceDaoImpl
- All Implemented Interfaces:
BaseDao<BibliographicReference>,BaseVoEnabledDao<BibliographicReference,,BibliographicReferenceValueObject> BrowsingDao<BibliographicReference>,BibliographicReferenceDao
@Repository
public class BibliographicReferenceDaoImpl
extends AbstractVoEnabledDao<BibliographicReference,BibliographicReferenceValueObject>
implements BibliographicReferenceDao
- Author:
- pavlidis
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
REPORT_SLOW_QUERY_AFTER_MSFields inherited from class ubic.gemma.persistence.service.AbstractDao
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowse(int start, int limit) longCount the number of distinct references that are linked to experiments.protected BibliographicReferenceValueObjectLoad a value object for a given entity.find(BibliographicReference bibliographicReference) Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).findByExternalId(String id, String databaseName) findByExternalId(DatabaseEntry externalId) Find by the external database id, such as for PubMedgetAllExperimentLinkedReferences(int offset, int limit) To save some space, the EEs only have their ID and short name filled.listAll()thaw(Collection<BibliographicReference> bibliographicReferences) thaw(BibliographicReference bibliographicReference) Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
doLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds, postProcessValueObjectsMethods 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, remove, remove, save, save, streamAll, streamAll, streamQuery, update, updateMethods 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, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Constructor Details
-
BibliographicReferenceDaoImpl
-
-
Method Details
-
findByExternalId
- Specified by:
findByExternalIdin interfaceBibliographicReferenceDao
-
findByExternalId
Description copied from interface:BibliographicReferenceDaoFind by the external database id, such as for PubMed- Specified by:
findByExternalIdin interfaceBibliographicReferenceDao- Parameters:
externalId- external database id- Returns:
- found bibliographic reference
-
countExperimentLinkedReferences
public long countExperimentLinkedReferences()Description copied from interface:BibliographicReferenceDaoCount the number of distinct references that are linked to experiments.To be distinct, two references must have different author lists and titles.
- Specified by:
countExperimentLinkedReferencesin interfaceBibliographicReferenceDao- See Also:
-
getAllExperimentLinkedReferences
public Map<BibliographicReference,Set<ExpressionExperiment>> getAllExperimentLinkedReferences(int offset, int limit) Description copied from interface:BibliographicReferenceDaoTo save some space, the EEs only have their ID and short name filled.References are sorted by author and title.
- Specified by:
getAllExperimentLinkedReferencesin interfaceBibliographicReferenceDao
-
thaw
- Specified by:
thawin interfaceBibliographicReferenceDao
-
thaw
public Collection<BibliographicReference> thaw(Collection<BibliographicReference> bibliographicReferences) - Specified by:
thawin interfaceBibliographicReferenceDao
-
getRelatedExperiments
public Map<BibliographicReference,Collection<ExpressionExperiment>> getRelatedExperiments(Collection<BibliographicReference> records) - Specified by:
getRelatedExperimentsin interfaceBibliographicReferenceDao
-
listAll
- Specified by:
listAllin interfaceBibliographicReferenceDao
-
browse
- Specified by:
browsein interfaceBrowsingDao<BibliographicReference>
-
browse
public List<BibliographicReference> browse(int start, int limit, String orderField, boolean descending) - Specified by:
browsein interfaceBrowsingDao<BibliographicReference>
-
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).- Specified by:
findin interfaceBaseDao<BibliographicReference>- Overrides:
findin classAbstractDao<BibliographicReference>- Parameters:
bibliographicReference- the entity to look for.- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
-
doLoadValueObject
Description copied from class:AbstractVoEnabledDaoLoad a value object for a given entity.This should be fast and efficient, and avoid any database query or post-processing. If you need to perform additional queries, implement
AbstractVoEnabledDao.postProcessValueObjects(List)instead.- Specified by:
doLoadValueObjectin classAbstractVoEnabledDao<BibliographicReference,BibliographicReferenceValueObject>
-