Interface VersionedObjectDao<T extends com.atlassian.core.bean.EntityObject>
-
- All Superinterfaces:
ObjectDao
- All Known Subinterfaces:
BlogPostDao
,BlogPostDaoInternal
,ContentDao
,ContentDaoInternal
,ContentEntityObjectDao<T>
,ContentEntityObjectDaoInternal<T>
,CustomContentDao
,PageDao
,PageDaoInternal
,PageTemplateDao
,SpacePermissionDao
,VersionedObjectDaoInternal<T>
- All Known Implementing Classes:
AbstractContentEntityObjectHibernateDao
,AbstractHibernateAttachmentDao
,ConfluenceHibernateObjectDao
,ContentEntityObjectHibernateDao
,ContentPermissionHibernateDao
,DefaultContentDao
,DelegatingPageDao
,HibernateAlertEntityDao
,HibernateBlogPostDao
,HibernateCommentDao
,HibernateInternalRunDetailsDao
,HibernateLinkDao
,HibernateNotificationDao
,HibernatePageDao
,HibernatePageTemplateDao
,HibernatePersonalInformationDao
,HibernateSpaceDao
,HibernateSpacePermissionDao
,MigrationPageTemplateDao
,NonTransactionalHibernateAttachmentDao
,PluginContentHibernateDao
,ReadThroughCachingPageDao
,SchedulerClusteredJobDao
,SchedulerRunDetailsDao
,TransactionalHibernateAttachmentDao
,VersionedHibernateObjectDao
@Transactional(readOnly=true) public interface VersionedObjectDao<T extends com.atlassian.core.bean.EntityObject> extends ObjectDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description long
findLatestVersionsCount()
Returns the number of results for the latest versions of the current persistent class.Iterator<T>
findLatestVersionsIterator()
Returns an iterator for the latest versions of the current persistent class.void
save(com.atlassian.core.bean.EntityObject currentObject, com.atlassian.core.bean.EntityObject originalObject)
Deprecated.since 6.10.0.-
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
-
-
-
Method Detail
-
save
@Deprecated @Transactional void save(com.atlassian.core.bean.EntityObject currentObject, com.atlassian.core.bean.EntityObject originalObject)
Deprecated.since 6.10.0. UseVersionedObjectDaoInternal.saveEntity(EntityObject, EntityObject)
instead.Saves the given current object and historical object- Parameters:
currentObject
- the current object.originalObject
- the original object. This will be mutated to become a historical version as part of this save.
-
findLatestVersionsIterator
Iterator<T> findLatestVersionsIterator()
Returns an iterator for the latest versions of the current persistent class.- Returns:
- Iterator
-
findLatestVersionsCount
long findLatestVersionsCount()
Returns the number of results for the latest versions of the current persistent class.- Returns:
- a long representing the number of results
-
-