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_MS
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowse
(int start, int limit) long
Count the number of distinct references that are linked to experiments.protected BibliographicReferenceValueObject
Load 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, postProcessValueObjects
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, streamQuery, 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.BaseDao
countAll, create, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Constructor Details
-
BibliographicReferenceDaoImpl
-
-
Method Details
-
findByExternalId
- Specified by:
findByExternalId
in interfaceBibliographicReferenceDao
-
findByExternalId
Description copied from interface:BibliographicReferenceDao
Find by the external database id, such as for PubMed- Specified by:
findByExternalId
in interfaceBibliographicReferenceDao
- Parameters:
externalId
- external database id- Returns:
- found bibliographic reference
-
countExperimentLinkedReferences
public long countExperimentLinkedReferences()Description copied from interface:BibliographicReferenceDao
Count the number of distinct references that are linked to experiments.To be distinct, two references must have different author lists and titles.
- Specified by:
countExperimentLinkedReferences
in interfaceBibliographicReferenceDao
- See Also:
-
getAllExperimentLinkedReferences
public Map<BibliographicReference,Set<ExpressionExperiment>> getAllExperimentLinkedReferences(int offset, int limit) Description copied from interface:BibliographicReferenceDao
To save some space, the EEs only have their ID and short name filled.References are sorted by author and title.
- Specified by:
getAllExperimentLinkedReferences
in interfaceBibliographicReferenceDao
-
thaw
- Specified by:
thaw
in interfaceBibliographicReferenceDao
-
thaw
public Collection<BibliographicReference> thaw(Collection<BibliographicReference> bibliographicReferences) - Specified by:
thaw
in interfaceBibliographicReferenceDao
-
getRelatedExperiments
public Map<BibliographicReference,Collection<ExpressionExperiment>> getRelatedExperiments(Collection<BibliographicReference> records) - Specified by:
getRelatedExperiments
in interfaceBibliographicReferenceDao
-
listAll
- Specified by:
listAll
in interfaceBibliographicReferenceDao
-
browse
- Specified by:
browse
in interfaceBrowsingDao<BibliographicReference>
-
browse
public List<BibliographicReference> browse(int start, int limit, String orderField, boolean descending) - Specified by:
browse
in interfaceBrowsingDao<BibliographicReference>
-
find
Description copied from interface:BaseDao
Does 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:
find
in interfaceBaseDao<BibliographicReference>
- Overrides:
find
in 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:AbstractVoEnabledDao
Load 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:
doLoadValueObject
in classAbstractVoEnabledDao<BibliographicReference,
BibliographicReferenceValueObject>
-