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

java.lang.Object
  extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase
      extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase<T>
          extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase<T>
              extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.AnnotatableDaoImpl<T>
                  extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.LanguageStringBaseDaoImpl<Annotation>
                      extended by eu.etaxonomy.cdm.persistence.dao.hibernate.common.AnnotationDaoImpl
All Implemented Interfaces:
IAnnotatableDao<Annotation>, IAnnotationDao, ICdmEntityDao<Annotation>, ILanguageStringBaseDao<Annotation>, IVersionableDao<Annotation>

@Repository
public class AnnotationDaoImpl
extends LanguageStringBaseDaoImpl<Annotation>
implements IAnnotationDao


Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase
defaultBeanInitializer, flushAfterNo, type, version
 
Constructor Summary
AnnotationDaoImpl()
           
 
Method Summary
 int count(Person commentator, MarkerType status)
          Returns a count of Annotations, optionally filtered by commentator and status
 int count(User creator, MarkerType status)
          Returns a count of Annotations, optionally filtered by creator and status
 List<Annotation> list(Person commentator, MarkerType status, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths)
          Returns a List of Annotations, optionally filtered by commentator and status
 List<Annotation> list(User creator, MarkerType status, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths)
          Returns a List of Annotations, optionally filtered by creator and status
 
Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.AnnotatableDaoImpl
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
 
Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase
addCriteria, addOrder, checkNotInPriorView, count, count, count, countAuditEvents, countAuditEvents, countByParam, exists, findByParam, findByUuid, getAuditEventFromContext, getAuditEvents, getAuditEvents, getAuditReader, getNextAuditEvent, getPreviousAuditEvent, list, list, list, list, load, load
 
Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase
addCriteria, addExample, addGroups, addOrder, clear, countGroups, delete, findById, getSession, getType, group, list, list, list, list, listByIds, 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.IAnnotatableDao
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IVersionableDao
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
 
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

AnnotationDaoImpl

public AnnotationDaoImpl()
Method Detail

count

public int count(Person commentator,
                 MarkerType status)
Description copied from interface: IAnnotationDao
Returns a count of Annotations, optionally filtered by commentator and status

Specified by:
count in interface IAnnotationDao
Parameters:
commentator - The person who made the annotation (null to count all annotations, regardless of who made the comment)
status - The status of the annotations (null to count all annotations regardless of status)
Returns:
a count of Annotation instances

list

public List<Annotation> list(Person commentator,
                             MarkerType status,
                             Integer pageSize,
                             Integer pageNumber,
                             List<OrderHint> orderHints,
                             List<String> propertyPaths)
Description copied from interface: IAnnotationDao
Returns a List of Annotations, optionally filtered by commentator and status

Specified by:
list in interface IAnnotationDao
Parameters:
commentator - The person who made the annotation (null to list all annotations, regardless of who made the comment)
status - The status of the annotations (null to return annotations regardless of status)
pageSize - The maximum number of annotations returned (can be null for all annotations)
pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
orderHints - Properties to order by
propertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Returns:
a List of Annotation instances

count

public int count(User creator,
                 MarkerType status)
Description copied from interface: IAnnotationDao
Returns a count of Annotations, optionally filtered by creator and status

Specified by:
count in interface IAnnotationDao
status - The status of the annotations (null to count all annotations regardless of status)
Returns:
a count of Annotation instances

list

public List<Annotation> list(User creator,
                             MarkerType status,
                             Integer pageSize,
                             Integer pageNumber,
                             List<OrderHint> orderHints,
                             List<String> propertyPaths)
Description copied from interface: IAnnotationDao
Returns a List of Annotations, optionally filtered by creator and status

Specified by:
list in interface IAnnotationDao
status - The status of the annotations (null to return annotations regardless of status)
pageSize - The maximum number of annotations returned (can be null for all annotations)
pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
orderHints - Properties to order by
propertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Returns:
a List of Annotation instances


Copyright © 2007-2013 EDIT. All Rights Reserved.