eu.etaxonomy.cdm.persistence.dao.hibernate.common
Class OriginalSourceDaoImpl

java.lang.Object
  extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase
      extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase<OriginalSourceBase>
          extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.OriginalSourceDaoImpl
All Implemented Interfaces:
ICdmEntityDao<OriginalSourceBase>, IOriginalSourceDao

@Repository
public class OriginalSourceDaoImpl
extends CdmEntityDaoBase<OriginalSourceBase>
implements IOriginalSourceDao

Version:
1.0
Author:
a.mueller

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase
defaultBeanInitializer, flushAfterNo, type, version
 
Constructor Summary
OriginalSourceDaoImpl()
           
 
Method Summary
 List<IdentifiableEntity> findOriginalSourceByIdInSource(Class clazz, String idInSource, String idNamespace)
          Returns a list of identifiable entities according to their class, idInSource and idNamespace
 List<OriginalSourceBase> findOriginalSourceByIdInSource(String idInSource, String idNamespace)
          Returns the first OriginalSource with according idInSource and idNamespace
 Map<String,ISourceable> findOriginalSourcesByIdInSource(Class clazz, Set<String> idInSourceSet, String idNamespace)
          Returns a map of identifiable entities of class clazz which have an original source of with namespace idNamespace and with an idInSource in idInSourceList
The key of the map is the idInSource.
 
Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase
addCriteria, addExample, addGroups, addOrder, clear, count, count, count, countByParam, countGroups, delete, exists, findById, findByParam, findByUuid, getSession, getType, group, list, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update
 
Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase
addOrder, flush, getSessionFactory, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao
clear, count, count, count, delete, exists, findById, findByUuid, flush, getSession, getType, group, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
 

Constructor Detail

OriginalSourceDaoImpl

public OriginalSourceDaoImpl()
Method Detail

findOriginalSourcesByIdInSource

public Map<String,ISourceable> findOriginalSourcesByIdInSource(Class clazz,
                                                               Set<String> idInSourceSet,
                                                               String idNamespace)
Description copied from interface: IOriginalSourceDao
Returns a map of identifiable entities of class clazz which have an original source of with namespace idNamespace and with an idInSource in idInSourceList
The key of the map is the idInSource. If there are multiple objects that have the same id an arbitrary one is chosen.

Specified by:
findOriginalSourcesByIdInSource in interface IOriginalSourceDao
Returns:

findOriginalSourceByIdInSource

public List<IdentifiableEntity> findOriginalSourceByIdInSource(Class clazz,
                                                               String idInSource,
                                                               String idNamespace)
Description copied from interface: IOriginalSourceDao
Returns a list of identifiable entities according to their class, idInSource and idNamespace

Specified by:
findOriginalSourceByIdInSource in interface IOriginalSourceDao
Returns:

findOriginalSourceByIdInSource

public List<OriginalSourceBase> findOriginalSourceByIdInSource(String idInSource,
                                                               String idNamespace)
Description copied from interface: IOriginalSourceDao
Returns the first OriginalSource with according idInSource and idNamespace

Specified by:
findOriginalSourceByIdInSource in interface IOriginalSourceDao
Returns:


Copyright © 2007-2013 EDIT. All Rights Reserved.