Package bucket.core.persistence
Interface ObjectDao
-
- All Known Subinterfaces:
BlogPostDao
,BlogPostDaoInternal
,CommentDao
,CommentDaoInternal
,ContentDao
,ContentDaoInternal
,ContentEntityObjectDao<T>
,ContentEntityObjectDaoInternal<T>
,ContentPermissionDao
,ContentPermissionDaoInternal
,ContentPermissionSetDao
,ContentPermissionSetDaoInternal
,CustomContentDao
,GlobalDescriptionDao
,GlobalDescriptionDaoInternal
,LabelDao
,LabelDaoInternal
,LinkDao
,LinkDaoInternal
,NotificationDao
,NotificationDaoInternal
,ObjectDaoInternal<T>
,PageDao
,PageDaoInternal
,PageTemplateDao
,PersonalInformationDao
,PersonalInformationDaoInternal
,SpaceDao
,SpaceDaoInternal
,SpacePermissionDao
,VersionedObjectDao<T>
,VersionedObjectDaoInternal<T>
,VersionHistoryDao
,VersionHistoryDaoInternal
- All Known Implementing Classes:
AbstractContentEntityObjectHibernateDao
,AbstractHibernateAttachmentDao
,CachingNotificationDao
,CachingVersionHistoryDao
,ConfluenceHibernateObjectDao
,ContentEntityObjectHibernateDao
,ContentPermissionHibernateDao
,DefaultContentDao
,DefaultGlobalDescriptionDao
,DelegatingNotificationDaoInternal
,DelegatingObjectDaoInternal
,DelegatingPageDao
,HibernateAbstractPageDao
,HibernateAlertEntityDao
,HibernateAttachmentDataDao
,HibernateAuditRecordDao
,HibernateBlogPostDao
,HibernateCommentDao
,HibernateContentPermissionSetDao
,HibernateDraftDao
,HibernateInternalRunDetailsDao
,HibernateLabelDao
,HibernateLinkDao
,HibernateNotificationDao
,HibernateObjectDao
,HibernatePageDao
,HibernatePageTemplateDao
,HibernatePersonalInformationDao
,HibernateSpaceDao
,HibernateSpacePermissionDao
,HibernateVersionHistoryDao
,HibernateZduStatusDao
,MigrationPageTemplateDao
,NonTransactionalHibernateAttachmentDao
,PluginContentHibernateDao
,ReadThroughCachingPageDao
,ReadThroughCachingPersonalInformationDao
,SchedulerClusteredJobDao
,SchedulerRunDetailsDao
,TransactionalHibernateAttachmentDao
,VersionedHibernateObjectDao
@Deprecated @Transactional(readOnly=true) public interface ObjectDao
Deprecated.since 6.10.0. Usecom.atlassian.confluence.internal.persistence.ObjectDaoInternal
instead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NonNull List
findAll()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6@NonNull List
findAllSorted(String sortField)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6@NonNull List
findAllSorted(String sortField, boolean cacheable, int offset, int maxResultCount)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6<T> @NonNull PageResponse<T>
findByClassIds(Iterable<Long> ids, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super T> filter)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Class
getPersistentClass()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6void
refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
Deprecated.since 6.10.0.void
remove(com.atlassian.core.bean.EntityObject object)
Deprecated.since 6.10.0.void
replicate(Object objectToReplicate)
Deprecated.since 6.10.0.void
save(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.since 6.10.0.void
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.since 6.10.0.
-
-
-
Method Detail
-
remove
@Deprecated @Transactional void remove(com.atlassian.core.bean.EntityObject object)
Deprecated.since 6.10.0. UseObjectDaoInternal#removeEntity(EntityObject)
instead.Remove object from persistence.
-
refresh
@Deprecated @Transactional void refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
Deprecated.since 6.10.0. UseObjectDaoInternal#refreshEntity(EntityObject)
instead.Refreshes the object again with the fresh data from db.
-
replicate
@Deprecated @Transactional void replicate(Object objectToReplicate)
Deprecated.since 6.10.0. UseObjectDaoInternal#replicateEntity(EntityObject)
instead.Replicate the object. Replication does not generate a new id if the object does not exist in database and it overwrites the database row if the object already exists in database.
-
findAll
@Deprecated(forRemoval=true) @NonNull List findAll()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Find all objects currently persisted of a particular type.
-
findAllSorted
@Deprecated(forRemoval=true) @NonNull List findAllSorted(String sortField)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Find all objects currently persisted of a particular type and sort results by named property.- Parameters:
sortField
- the name of the property to be sorted on. This should be null if no sorting is required.
-
findAllSorted
@Deprecated(forRemoval=true) @NonNull List findAllSorted(String sortField, boolean cacheable, int offset, int maxResultCount)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Find all objects currently persisted of a particular type and sort results by named property. This version of the method allows more control over the query.- Parameters:
sortField
- the name of the property to be sorted on. This should be null if no sorting is required.cacheable
- control whether the results should be cachedoffset
- the index of the first result to be returnedmaxResultCount
- the maximum number of results required. Use -1 to specify no limit.
-
findByClassIds
@Deprecated(forRemoval=true) <T> @NonNull PageResponse<T> findByClassIds(Iterable<Long> ids, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super T> filter)
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6Find a list of objects from the same persistent class.- Type Parameters:
T
- the type of entity to return- Parameters:
ids
- - the ids of the entities to findlimitedRequest
- the pagination request defining the page size to fetchfilter
- a predicate to do in memory filtering of the result set before returning- Returns:
- a list of objects matching the filters
-
save
@Deprecated @Transactional void save(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.since 6.10.0. UseObjectDaoInternal#saveEntity(EntityObject)
instead.
-
getPersistentClass
@Transactional(readOnly=true, propagation=SUPPORTS) @Deprecated(forRemoval=true) Class getPersistentClass()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
saveRaw
@Deprecated @Transactional void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.since 6.10.0. UseObjectDaoInternal#saveRawEntity(EntityObject)
instead.saves the object. if the object is new, this won't set the creation date on the object. if it already exists, then it won't set the date that it was updated.- Parameters:
objectToSave
-
-
-